validateGetStaticPathsParameter() — astro Function Reference
Architecture documentation for the validateGetStaticPathsParameter() function in validation.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c01735e5_44e4_0e0e_6e91_10485e4045c4["validateGetStaticPathsParameter()"] 026c8980_c8fc_05c8_19cb_d7abee54a53f["validation.ts"] c01735e5_44e4_0e0e_6e91_10485e4045c4 -->|defined in| 026c8980_c8fc_05c8_19cb_d7abee54a53f style c01735e5_44e4_0e0e_6e91_10485e4045c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/routing/validation.ts lines 9–19
export function validateGetStaticPathsParameter([key, value]: [string, any], route: string) {
if (!VALID_PARAM_TYPES.includes(typeof value)) {
throw new AstroError({
...AstroErrorData.GetStaticPathsInvalidRouteParam,
message: AstroErrorData.GetStaticPathsInvalidRouteParam.message(key, value, typeof value),
location: {
file: route,
},
});
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does validateGetStaticPathsParameter() do?
validateGetStaticPathsParameter() is a function in the astro codebase, defined in packages/astro/src/core/routing/validation.ts.
Where is validateGetStaticPathsParameter() defined?
validateGetStaticPathsParameter() is defined in packages/astro/src/core/routing/validation.ts at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free