UNPKG

next-translate-routes-multi-domain

Version:

Flexible and translated routes for Next.js without custom server

12 lines (11 loc) 465 B
import type { TRouteBranch } from '../types'; export declare type TParsePageTreeProps = { directoryPath: string; pageExtensions: string[]; isSubBranch?: boolean; routesDataFileName?: string; }; /** * Recursively parse pages directory and build a page tree object */ export declare const parsePages: <L extends string>({ directoryPath: propDirectoryPath, pageExtensions, isSubBranch, routesDataFileName, }: TParsePageTreeProps) => TRouteBranch<L>;