Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
24
node_modules/next/dist/build/segment-config/app/app-segments.d.ts
generated
vendored
Normal file
24
node_modules/next/dist/build/segment-config/app/app-segments.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import type { LoadComponentsReturnType } from '../../../server/load-components';
|
||||
import type { Params } from '../../../server/request/params';
|
||||
import type { AppPageModule } from '../../../server/route-modules/app-page/module.compiled';
|
||||
import type { AppRouteModule } from '../../../server/route-modules/app-route/module.compiled';
|
||||
import { type AppSegmentConfig } from './app-segment-config';
|
||||
type GenerateStaticParams = (options: {
|
||||
params?: Params;
|
||||
}) => Promise<Params[]>;
|
||||
export type AppSegment = {
|
||||
name: string;
|
||||
param: string | undefined;
|
||||
filePath: string | undefined;
|
||||
config: AppSegmentConfig | undefined;
|
||||
isDynamicSegment: boolean;
|
||||
generateStaticParams: GenerateStaticParams | undefined;
|
||||
};
|
||||
/**
|
||||
* Collects the segments for a given route module.
|
||||
*
|
||||
* @param components the loaded components
|
||||
* @returns the segments for the route module
|
||||
*/
|
||||
export declare function collectSegments({ routeModule, }: LoadComponentsReturnType<AppPageModule | AppRouteModule>): Promise<AppSegment[]> | AppSegment[];
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue