summaryrefslogtreecommitdiff
path: root/src/pages.gen.ts
blob: 94e0a4ad455c65359efb7406cc2eabaaa67879f0 (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
// 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 Login_getConfig } from './pages/login';
// 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: '/login' } & GetConfigResponse<typeof Login_getConfig>)
| ({ 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;
  }
}