Files
novarix.uk/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.d.ts
T
Kismet Hasanaj 39a8a128be including-modules
2026-05-03 00:14:08 +02:00

20 lines
761 B
TypeScript

import type { DynamicPrerenderManifestRoute, PrerenderManifest } from '../../../../build';
import type { DeepReadonly } from '../../../../shared/lib/deep-readonly';
/**
* A matcher for the prerender manifest.
*
* This class is used to match the pathname to the dynamic route.
*/
export declare class PrerenderManifestMatcher {
private readonly matchers;
constructor(pathname: string, prerenderManifest: DeepReadonly<PrerenderManifest>);
/**
* Match the pathname to the dynamic route. If no match is found, an error is
* thrown.
*
* @param pathname - The pathname to match.
* @returns The dynamic route that matches the pathname.
*/
match(pathname: string): DeepReadonly<DynamicPrerenderManifestRoute> | null;
}