diff options
author | polwex <polwex@sortug.com> | 2025-07-16 10:07:06 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-16 10:07:06 +0700 |
commit | ff3078e93411c3467d797258744a7f17a7dbdf0a (patch) | |
tree | b13df65dbae32a3298afc0ada39b73a7d8aa469d /app/src/pages.gen.ts | |
parent | b26f4a03e15feddeb4bee8c06cd5078c1a54e5c5 (diff) |
m
Diffstat (limited to 'app/src/pages.gen.ts')
-rw-r--r-- | app/src/pages.gen.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/pages.gen.ts b/app/src/pages.gen.ts new file mode 100644 index 0000000..7953e50 --- /dev/null +++ b/app/src/pages.gen.ts @@ -0,0 +1,27 @@ +// 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 File_Categorize_getConfig } from './pages/categorize'; +// prettier-ignore +import type { getConfig as File_About_getConfig } from './pages/about'; +// prettier-ignore +import type { getConfig as File_Index_getConfig } from './pages/index'; + +// prettier-ignore +type Page = +| ({ path: '/categorize' } & GetConfigResponse<typeof File_Categorize_getConfig>) +| ({ path: '/about' } & GetConfigResponse<typeof File_About_getConfig>) +| ({ path: '/' } & GetConfigResponse<typeof File_Index_getConfig>); + +// prettier-ignore +declare module 'waku/router' { + interface RouteConfig { + paths: PathsForPages<Page>; + } + interface CreatePagesConfig { + pages: Page; + } +} |