summaryrefslogtreecommitdiff
path: root/src/pages.gen.ts
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-05-15 04:37:12 +0700
committerpolwex <polwex@sortug.com>2025-05-15 04:37:12 +0700
commitdf7ffaf4cb722890ca3159c3839c61552f7195d3 (patch)
treec87b7e5e7556f370cfb8ea5486c36aabcd8c8d3b /src/pages.gen.ts
all working now...
Diffstat (limited to 'src/pages.gen.ts')
-rw-r--r--src/pages.gen.ts28
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