MCPcopy
hub / github.com/sveltejs/kit / RouteData

Interface RouteData

packages/kit/types/index.d.ts:1966–1987  ·  view source on GitHub ↗

* Represents a route segment in the app. It can either be an intermediate node * with only layout/error pages, or a leaf, at which point either `page` and `leaf` * or `endpoint` is set.

Source from the content-addressed store, hash-verified

1964 * or `endpoint` is set.
1965 */
1966 interface RouteData {
1967 id: string;
1968 parent: RouteData | null;
1969
1970 segment: string;
1971 pattern: RegExp;
1972 params: RouteParam[];
1973
1974 layout: PageNode | null;
1975 error: PageNode | null;
1976 leaf: PageNode | null;
1977
1978 page: {
1979 layouts: Array<number | undefined>;
1980 errors: Array<number | undefined>;
1981 leaf: number;
1982 } | null;
1983
1984 endpoint: {
1985 file: string;
1986 } | null;
1987 }
1988
1989 interface SSRComponent {
1990 default: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected