next-typesafe-path
Version:
Type-safe path for Next.js
12 lines (11 loc) • 346 B
TypeScript
import { RouteFunctionDefinition } from './route';
export type { DynamicRouteType, RouteFunctionDefinition, RouteSegment, } from './route';
export type FileContentOption = {
routes: RouteFunctionDefinition[];
options: UserOptions;
};
export type UserOptions = {
trailingSlash: boolean;
watch?: boolean;
configDir?: string;
};