blob: b4a4bd70d89829bdf02310325a5dbc8bf189ce2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// 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 Zoom_getConfig } from './pages/zoom';
// prettier-ignore
import type { getConfig as LangSlug_getConfig } from './pages/lang/[slug]';
// prettier-ignore
import type { getConfig as LessonSlug_getConfig } from './pages/lesson/[slug]';
// prettier-ignore
import type { getConfig as Login_getConfig } from './pages/login';
// prettier-ignore
import type { getConfig as Parse_getConfig } from './pages/parse';
// prettier-ignore
import type { getConfig as Db_getConfig } from './pages/db';
// prettier-ignore
import type { getConfig as Form_getConfig } from './pages/form';
// prettier-ignore
import type { getConfig as Tones_getConfig } from './pages/tones';
// prettier-ignore
import type { getConfig as Picker_getConfig } from './pages/picker';
// prettier-ignore
import type { getConfig as About_getConfig } from './pages/about';
// prettier-ignore
import type { getConfig as LogintestIndex_getConfig } from './pages/logintest/index';
// prettier-ignore
import type { getConfig as Index_getConfig } from './pages/index';
// prettier-ignore
type Page =
| ({ path: '/zoom' } & GetConfigResponse<typeof Zoom_getConfig>)
| ({ path: '/lang/[slug]' } & GetConfigResponse<typeof LangSlug_getConfig>)
| ({ path: '/lesson/[slug]' } & GetConfigResponse<typeof LessonSlug_getConfig>)
| ({ path: '/login' } & GetConfigResponse<typeof Login_getConfig>)
| ({ path: '/parse' } & GetConfigResponse<typeof Parse_getConfig>)
| ({ path: '/db' } & GetConfigResponse<typeof Db_getConfig>)
| { path: '/test/client-modal'; render: 'dynamic' }
| { path: '/test/trigger-modal-button'; render: 'dynamic' }
| { path: '/test'; render: 'dynamic' }
| ({ path: '/form' } & GetConfigResponse<typeof Form_getConfig>)
| ({ path: '/tones' } & GetConfigResponse<typeof Tones_getConfig>)
| ({ path: '/picker' } & GetConfigResponse<typeof Picker_getConfig>)
| ({ path: '/about' } & GetConfigResponse<typeof About_getConfig>)
| { path: '/logintest/Form'; render: 'dynamic' }
| ({ path: '/logintest' } & GetConfigResponse<typeof LogintestIndex_getConfig>)
| { path: '/logintest/ServerForm'; render: 'dynamic' }
| ({ path: '/' } & GetConfigResponse<typeof Index_getConfig>);
// prettier-ignore
declare module 'waku/router' {
interface RouteConfig {
paths: PathsForPages<Page>;
}
interface CreatePagesConfig {
pages: Page;
}
}
|