next
Version:
The React Framework
14 lines (13 loc) • 535 B
TypeScript
import type { ComponentsType } from '../../build/webpack/loaders/next-app-loader';
/**
* LoaderTree is generated in next-app-loader.
*/
export type LoaderTree = [
segment: string,
parallelRoutes: {
[parallelRouterKey: string]: LoaderTree;
},
components: ComponentsType
];
export declare function getLayoutOrPageModule(loaderTree: LoaderTree): Promise<readonly [any, "page" | "layout" | undefined]>;
export declare function getErrorOrLayoutModule(loaderTree: LoaderTree, errorType: 'not-found'): Promise<any>;