securityos/node_modules/next/dist/server/future/route-definitions/route-definition.d.ts

17 lines
552 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import type { RouteKind } from '../route-kind';
export interface RouteDefinition<K extends RouteKind = RouteKind> {
readonly kind: K;
readonly bundlePath: string;
readonly filename: string;
/**
* Describes the pathname including all internal modifiers such as
* intercepting routes, parallel routes and route/page suffixes that are not
* part of the pathname.
*/
readonly page: string;
/**
* The pathname (including dynamic placeholders) for a route to resolve.
*/
readonly pathname: string;
}