IntegrationResolvedRoute Type — astro Architecture
Architecture documentation for the IntegrationResolvedRoute type/interface in integrations.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b1b51985_9aca_8a09_511e_1c3f93ceb55f["IntegrationResolvedRoute"] 5a61a076_c3db_01bc_0201_03ec73ca05bb["integrations.ts"] b1b51985_9aca_8a09_511e_1c3f93ceb55f -->|defined in| 5a61a076_c3db_01bc_0201_03ec73ca05bb style b1b51985_9aca_8a09_511e_1c3f93ceb55f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/types/public/integrations.ts lines 346–388
export interface IntegrationResolvedRoute
extends Pick<RouteData, 'params' | 'pathname' | 'segments' | 'type' | 'redirect' | 'origin'> {
/**
* {@link RouteData.route}
*/
pattern: RouteData['route'];
/**
* {@link RouteData.pattern}
*/
patternRegex: RouteData['pattern'];
/**
* {@link RouteData.component}
*/
entrypoint: RouteData['component'];
/**
* {@link RouteData.prerender}
*/
isPrerendered: RouteData['prerender'];
/**
* {@link RouteData.redirectRoute}
*/
redirectRoute?: IntegrationResolvedRoute;
/**
* @param {any} data The optional parameters of the route
*
* @description
* A function that accepts a list of params, interpolates them with the route pattern, and returns the path name of the route.
*
* ## Example
*
* For a route such as `/blog/[...id].astro`, the `generate` function would return something like this:
*
* ```js
* console.log(generate({ id: 'presentation' })) // will log `/blog/presentation`
* ```
*/
generate: (data?: any) => string;
}
Source
Frequently Asked Questions
What is the IntegrationResolvedRoute type?
IntegrationResolvedRoute is a type/interface in the astro codebase, defined in packages/astro/src/types/public/integrations.ts.
Where is IntegrationResolvedRoute defined?
IntegrationResolvedRoute is defined in packages/astro/src/types/public/integrations.ts at line 346.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free