Routes
The app's routes by name. File-based routes declare them in the
routes.generated.d.ts the compiler writes beside them; a Router written
in JSX declares its own (docs/navigation.md).
Usage
Use typed destinations
import type { RouteTo } from 'kuito';
declare module 'kuito' {
interface Routes {
index: RouteTo;
show: RouteTo<{ id: number }>;
profile: RouteTo;
compose: RouteTo<{}, string>;
}
}Type declaration
export interface Routes {}Type
RoutesGenerated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.