main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import type { RouteMatch } from './route-match';
import type { AppPageRouteDefinition } from '../route-definitions/app-page-route-definition';
export interface AppPageRouteMatch extends RouteMatch<AppPageRouteDefinition> {
}
/**
* Checks if the given match is an App Page route match.
* @param match the match to check
* @returns true if the match is an App Page route match, false otherwise
*/
export declare function isAppPageRouteMatch(match: RouteMatch): match is AppPageRouteMatch;

View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isAppPageRouteMatch", {
enumerable: true,
get: function() {
return isAppPageRouteMatch;
}
});
const _routekind = require("../route-kind");
function isAppPageRouteMatch(match) {
return match.definition.kind === _routekind.RouteKind.APP_PAGE;
}
//# sourceMappingURL=app-page-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/future/route-matches/app-page-route-match.ts"],"names":["isAppPageRouteMatch","match","definition","kind","RouteKind","APP_PAGE"],"mappings":";;;;+BAYgBA;;;eAAAA;;;2BATU;AASnB,SAASA,oBACdC,KAAiB;IAEjB,OAAOA,MAAMC,UAAU,CAACC,IAAI,KAAKC,oBAAS,CAACC,QAAQ;AACrD"}

View File

@@ -0,0 +1,4 @@
import type { RouteMatch } from './route-match';
import type { AppRouteRouteDefinition } from '../route-definitions/app-route-route-definition';
export interface AppRouteRouteMatch extends RouteMatch<AppRouteRouteDefinition> {
}

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=app-route-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,5 @@
import type { LocaleRouteDefinition } from '../route-definitions/locale-route-definition';
import type { RouteMatch } from './route-match';
export interface LocaleRouteMatch<R extends LocaleRouteDefinition> extends RouteMatch<R> {
readonly detectedLocale?: string;
}

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=locale-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,10 @@
import type { RouteMatch } from './route-match';
import type { PagesAPIRouteDefinition } from '../route-definitions/pages-api-route-definition';
export interface PagesAPIRouteMatch extends RouteMatch<PagesAPIRouteDefinition> {
}
/**
* Checks if the given match is a Pages API route match.
* @param match the match to check
* @returns true if the match is a Pages API route match, false otherwise
*/
export declare function isPagesAPIRouteMatch(match: RouteMatch): match is PagesAPIRouteMatch;

View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isPagesAPIRouteMatch", {
enumerable: true,
get: function() {
return isPagesAPIRouteMatch;
}
});
const _routekind = require("../route-kind");
function isPagesAPIRouteMatch(match) {
return match.definition.kind === _routekind.RouteKind.PAGES_API;
}
//# sourceMappingURL=pages-api-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/future/route-matches/pages-api-route-match.ts"],"names":["isPagesAPIRouteMatch","match","definition","kind","RouteKind","PAGES_API"],"mappings":";;;;+BAagBA;;;eAAAA;;;2BAVU;AAUnB,SAASA,qBACdC,KAAiB;IAEjB,OAAOA,MAAMC,UAAU,CAACC,IAAI,KAAKC,oBAAS,CAACC,SAAS;AACtD"}

View File

@@ -0,0 +1,4 @@
import type { PagesRouteDefinition } from '../route-definitions/pages-route-definition';
import type { LocaleRouteMatch } from './locale-route-match';
export interface PagesRouteMatch extends LocaleRouteMatch<PagesRouteDefinition> {
}

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=pages-route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,14 @@
import type { RouteDefinition } from '../route-definitions/route-definition';
/**
* RouteMatch is the resolved match for a given request. This will contain all
* the dynamic parameters used for this route.
*/
export interface RouteMatch<D extends RouteDefinition = RouteDefinition> {
readonly definition: D;
/**
* params when provided are the dynamic route parameters that were parsed from
* the incoming request pathname. If a route match is returned without any
* params, it should be considered a static route.
*/
readonly params: Record<string, string | string[]> | undefined;
}

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=route-match.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}