mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
// deno-lint-ignore-file
|
|
/* eslint-disable */
|
|
// biome-ignore: needed import
|
|
import type { OneRouter } from 'one'
|
|
|
|
declare module 'one' {
|
|
export namespace OneRouter {
|
|
export interface __routes<T extends string = string> extends Record<string, unknown> {
|
|
StaticRoutes:
|
|
| `/`
|
|
| `/_sitemap`
|
|
| `/hydration-css`
|
|
| `/hydration-motion`
|
|
| `/motion-hydration-test`
|
|
| `/sandbox`
|
|
| `/sandbox-ssr`
|
|
| `/ssr-test`
|
|
| `/sub`
|
|
| `/sub/portal-missing-styles`
|
|
| `/test/rn-style-props`
|
|
| `/test/scrollview-hide-scrollbar`
|
|
| `/tooltip-heavy-ssr`
|
|
| `/tooltip-ssr`
|
|
DynamicRoutes:
|
|
| `/bento/${OneRouter.SingleRoutePart<T>}`
|
|
| `/test/${OneRouter.SingleRoutePart<T>}`
|
|
DynamicRouteTemplate:
|
|
| `/bento/[slug]`
|
|
| `/test/[slug]`
|
|
IsTyped: true
|
|
RouteTypes: {
|
|
'/bento/[slug]': RouteInfo<{ slug: string }>
|
|
'/test/[slug]': RouteInfo<{ slug: string }>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Helper type for route information
|
|
*/
|
|
type RouteInfo<Params = Record<string, never>> = {
|
|
Params: Params
|
|
LoaderProps: { path: string; search?: string; subdomain?: string; params: Params; request?: Request }
|
|
} |