@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 33 lines 1022 Bytes
Raw
1 // deno-fmt-ignore-file
2 // biome-ignore format: generated types do not need formatting
3 // prettier-ignore
4 import type { PathsForPages, GetConfigResponse, SearchCodecsForPages } from 'waku/router';
5
6 // prettier-ignore
7 import type { getConfig as File_Root_getConfig } from './pages/_root';
8 // prettier-ignore
9 import type { getConfig as File_About_getConfig } from './pages/about';
10 // prettier-ignore
11 import type { getConfig as File_Index_getConfig } from './pages/index';
12
13 // prettier-ignore
14 type Page =
15 | ({ path: '/_root' } & GetConfigResponse<typeof File_Root_getConfig>)
16 | ({ path: '/about' } & GetConfigResponse<typeof File_About_getConfig>)
17 | ({ path: '/' } & GetConfigResponse<typeof File_Index_getConfig>);
18
19 // prettier-ignore
20 type Layout =
21 | { path: '/' };
22
23 // prettier-ignore
24 declare module 'waku/router' {
25 interface RouteConfig {
26 paths: PathsForPages<Page>;
27 }
28 interface CreatePagesConfig {
29 pages: Page;
30 layouts: Layout;
31 }
32 interface SearchCodecsConfig extends SearchCodecsForPages<Page> {}
33 }