20 lines
911 B
Plaintext
20 lines
911 B
Plaintext
import { AnyContext, AnyPathParams, AnyRoute, UpdatableRouteOptions } from './route.cjs';
|
|
import { AnyValidator } from './validators.cjs';
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: any;
|
|
fullPaths: any;
|
|
to: any;
|
|
fileRoutesByTo: any;
|
|
id: any;
|
|
fileRoutesById: any;
|
|
}
|
|
export type InferFileRouteTypes<TRouteTree extends AnyRoute> = unknown extends TRouteTree['types']['fileRouteTypes'] ? never : TRouteTree['types']['fileRouteTypes'] extends FileRouteTypes ? TRouteTree['types']['fileRouteTypes'] : never;
|
|
export interface FileRoutesByPath {
|
|
}
|
|
export type LazyRouteOptions = Pick<UpdatableRouteOptions<AnyRoute, string, string, AnyPathParams, AnyValidator, {}, AnyContext, AnyContext, AnyContext, AnyContext>, 'component' | 'errorComponent' | 'pendingComponent' | 'notFoundComponent'>;
|
|
export interface LazyRoute {
|
|
options: {
|
|
id: string;
|
|
} & LazyRouteOptions;
|
|
}
|