diff options
Diffstat (limited to 'src/pages.gen.ts')
-rw-r--r-- | src/pages.gen.ts | 28 |
1 files changed, 28 insertions, 0 deletions
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<typeof Db_getConfig>) +| ({ path: '/about' } & GetConfigResponse<typeof About_getConfig>) +| ({ path: '/' } & GetConfigResponse<typeof Index_getConfig>); + +// prettier-ignore +declare module 'waku/router' { + interface RouteConfig { + paths: PathsForPages<Page>; + } + interface CreatePagesConfig { + pages: Page; + } +} +
\ No newline at end of file |