UNPKG

next-typesafe-path

Version:
8 lines (7 loc) 309 B
import { RouteFunctionDefinition, RouteSegment } from '../types'; export declare function createPagesScanner({ inputDir }: { inputDir?: string; }): (({ currentPath, parentSegments, }?: { currentPath?: string; parentSegments?: RouteSegment[]; }) => Promise<RouteFunctionDefinition[]>) | undefined;