blob: 2b4890f77754b2b35fe2bd972aae88ad4f037796 (
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
61
62
63
64
65
66
67
68
69
|
// 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_StudyThai_getConfig } from './pages/study/thai';
// prettier-ignore
import type { getConfig as File_Zoom_getConfig } from './pages/zoom';
// prettier-ignore
import type { getConfig as File_LangSlug_getConfig } from './pages/lang/[slug]';
// prettier-ignore
import type { getConfig as File_LessonSlug_getConfig } from './pages/lesson/[slug]';
// prettier-ignore
import type { getConfig as File_Login_getConfig } from './pages/login';
// prettier-ignore
import type { getConfig as File_Parse_getConfig } from './pages/parse';
// prettier-ignore
import type { getConfig as File_Logout_getConfig } from './pages/logout';
// prettier-ignore
import type { getConfig as File_Db_getConfig } from './pages/db';
// prettier-ignore
import type { getConfig as File_Study_getConfig } from './pages/study';
// prettier-ignore
import type { getConfig as File_Form_getConfig } from './pages/form';
// prettier-ignore
import type { getConfig as File_Tones_getConfig } from './pages/tones';
// prettier-ignore
import type { getConfig as File_Picker_getConfig } from './pages/picker';
// prettier-ignore
import type { getConfig as File_About_getConfig } from './pages/about';
// prettier-ignore
import type { getConfig as File_LogintestIndex_getConfig } from './pages/logintest/index';
// prettier-ignore
import type { getConfig as File_Index_getConfig } from './pages/index';
// prettier-ignore
type Page =
| ({ path: '/study/thai' } & GetConfigResponse<typeof File_StudyThai_getConfig>)
| { path: '/study/[slug]'; render: 'dynamic' }
| ({ path: '/zoom' } & GetConfigResponse<typeof File_Zoom_getConfig>)
| ({ path: '/lang/[slug]' } & GetConfigResponse<typeof File_LangSlug_getConfig>)
| ({ path: '/lesson/[slug]' } & GetConfigResponse<typeof File_LessonSlug_getConfig>)
| ({ path: '/login' } & GetConfigResponse<typeof File_Login_getConfig>)
| ({ path: '/parse' } & GetConfigResponse<typeof File_Parse_getConfig>)
| ({ path: '/logout' } & GetConfigResponse<typeof File_Logout_getConfig>)
| ({ path: '/db' } & GetConfigResponse<typeof File_Db_getConfig>)
| ({ path: '/study' } & GetConfigResponse<typeof File_Study_getConfig>)
| { path: '/test/client-modal'; render: 'dynamic' }
| { path: '/test/trigger-modal-button'; render: 'dynamic' }
| { path: '/test'; render: 'dynamic' }
| ({ path: '/form' } & GetConfigResponse<typeof File_Form_getConfig>)
| ({ path: '/tones' } & GetConfigResponse<typeof File_Tones_getConfig>)
| ({ path: '/picker' } & GetConfigResponse<typeof File_Picker_getConfig>)
| { path: '/lessons'; render: 'dynamic' }
| ({ path: '/about' } & GetConfigResponse<typeof File_About_getConfig>)
| ({ path: '/logintest' } & GetConfigResponse<typeof File_LogintestIndex_getConfig>)
| ({ path: '/' } & GetConfigResponse<typeof File_Index_getConfig>);
// prettier-ignore
declare module 'waku/router' {
interface RouteConfig {
paths: PathsForPages<Page>;
}
interface CreatePagesConfig {
pages: Page;
}
}
|