.
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import type { RouteDefinition } from './route-definition';
|
||||
import { RouteKind } from '../route-kind';
|
||||
export interface AppPageRouteDefinition extends RouteDefinition<RouteKind.APP_PAGE> {
|
||||
readonly appPaths: ReadonlyArray<string>;
|
||||
}
|
||||
/**
|
||||
* Returns true if the given definition is an App Page route definition.
|
||||
*/
|
||||
export declare function isAppPageRouteDefinition(definition: RouteDefinition): definition is AppPageRouteDefinition;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "isAppPageRouteDefinition", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return isAppPageRouteDefinition;
|
||||
}
|
||||
});
|
||||
const _routekind = require("../route-kind");
|
||||
function isAppPageRouteDefinition(definition) {
|
||||
return definition.kind === _routekind.RouteKind.APP_PAGE;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=app-page-route-definition.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/server/route-definitions/app-page-route-definition.ts"],"sourcesContent":["import type { RouteDefinition } from './route-definition'\nimport { RouteKind } from '../route-kind'\n\nexport interface AppPageRouteDefinition\n extends RouteDefinition<RouteKind.APP_PAGE> {\n readonly appPaths: ReadonlyArray<string>\n}\n\n/**\n * Returns true if the given definition is an App Page route definition.\n */\nexport function isAppPageRouteDefinition(\n definition: RouteDefinition\n): definition is AppPageRouteDefinition {\n return definition.kind === RouteKind.APP_PAGE\n}\n"],"names":["isAppPageRouteDefinition","definition","kind","RouteKind","APP_PAGE"],"mappings":";;;;+BAWgBA;;;eAAAA;;;2BAVU;AAUnB,SAASA,yBACdC,UAA2B;IAE3B,OAAOA,WAAWC,IAAI,KAAKC,oBAAS,CAACC,QAAQ;AAC/C","ignoreList":[0]}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { RouteKind } from '../route-kind';
|
||||
import type { RouteDefinition } from './route-definition';
|
||||
export interface AppRouteRouteDefinition extends RouteDefinition<RouteKind.APP_ROUTE> {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
//# sourceMappingURL=app-route-route-definition.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import type { RouteDefinition } from './route-definition';
|
||||
import type { RouteKind } from '../route-kind';
|
||||
export interface LocaleRouteDefinition<K extends RouteKind = RouteKind> extends RouteDefinition<K> {
|
||||
/**
|
||||
* When defined it means that this route is locale aware. When undefined,
|
||||
* it means no special handling has to occur to process locales.
|
||||
*/
|
||||
i18n?: {
|
||||
/**
|
||||
* Describes the locale for the route. If this is undefined, then it
|
||||
* indicates that this route can handle _any_ locale.
|
||||
*/
|
||||
locale?: string;
|
||||
};
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
//# sourceMappingURL=locale-route-definition.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { RouteKind } from '../route-kind';
|
||||
import type { LocaleRouteDefinition } from './locale-route-definition';
|
||||
export interface PagesAPIRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES_API> {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
//# sourceMappingURL=pages-api-route-definition.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { LocaleRouteDefinition } from './locale-route-definition';
|
||||
import type { RouteKind } from '../route-kind';
|
||||
export interface PagesRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES> {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
//# sourceMappingURL=pages-route-definition.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
//# sourceMappingURL=route-definition.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","ignoreList":[]}
|
||||
Reference in New Issue
Block a user