@svelteuse/router
Version:
Useful svelte router helper
18 lines • 577 B
TypeScript
import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess/types';
interface Options {
rootDir: string;
pageDir: string;
layoutDir: string;
errorsDir: string;
rootPath: string;
entryFile: string;
}
export declare function createRoutes(options: Options): PreprocessorGroup;
export declare function parseFile(path: string, pageDir?: string, rootPath?: string): {
identifier: string;
path: string;
isAsync: boolean;
};
export declare function generateImportPath(path: string): string;
export {};
//# sourceMappingURL=node.d.ts.map