astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
15 lines (14 loc) • 461 B
TypeScript
/**
* Use this module only to have functions needed in development
*/
import type { SSRManifest } from '../app/types.js';
import type { RouteData } from '../../types/public/index.js';
interface MatchedRoute {
route: RouteData;
filePath: URL;
resolvedPathname: string;
}
export declare function matchRoute(manifest: SSRManifest, pathname: string, { prerenderOnly }?: {
prerenderOnly?: boolean;
}): Promise<MatchedRoute | undefined>;
export {};