From df7ffaf4cb722890ca3159c3839c61552f7195d3 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 15 May 2025 04:37:12 +0700 Subject: all working now... --- src/pages.gen.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/pages.gen.ts (limited to 'src/pages.gen.ts') diff --git a/src/pages.gen.ts b/src/pages.gen.ts new file mode 100644 index 0000000..6f44dd4 --- /dev/null +++ b/src/pages.gen.ts @@ -0,0 +1,28 @@ +// deno-fmt-ignore-file +// biome-ignore format: generated types do not need formatting +// prettier-ignore +import type { PathsForPages, GetConfigResponse } from 'waku/router'; + +// prettier-ignore +import type { getConfig as Db_getConfig } from './pages/db'; +// prettier-ignore +import type { getConfig as About_getConfig } from './pages/about'; +// prettier-ignore +import type { getConfig as Index_getConfig } from './pages/index'; + +// prettier-ignore +type Page = +| ({ path: '/db' } & GetConfigResponse) +| ({ path: '/about' } & GetConfigResponse) +| ({ path: '/' } & GetConfigResponse); + +// prettier-ignore +declare module 'waku/router' { + interface RouteConfig { + paths: PathsForPages; + } + interface CreatePagesConfig { + pages: Page; + } +} + \ No newline at end of file -- cgit v1.2.3