validate.ts — astro Source File
Architecture documentation for validate.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ecf458e0_e7fa_1089_d6d3_ce60c0cb21bc["validate.ts"] ef8a1e3f_e350_75a6_b92d_62a8566d8db9["../core/errors/index.js"] ecf458e0_e7fa_1089_d6d3_ce60c0cb21bc --> ef8a1e3f_e350_75a6_b92d_62a8566d8db9 style ecf458e0_e7fa_1089_d6d3_ce60c0cb21bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { AstroError, AstroErrorData } from '../errors/index.js';
export function getRedirectLocationOrThrow(headers: Headers): string {
let location = headers.get('location');
if (!location) {
throw new AstroError({
...AstroErrorData.RedirectWithNoLocation,
});
}
return location;
}
Domain
Subdomains
Functions
Dependencies
- ../core/errors/index.js
Source
Frequently Asked Questions
What does validate.ts do?
validate.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in validate.ts?
validate.ts defines 1 function(s): getRedirectLocationOrThrow.
What does validate.ts depend on?
validate.ts imports 1 module(s): ../core/errors/index.js.
Where is validate.ts in the architecture?
validate.ts is located at packages/astro/src/core/redirects/validate.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/core/redirects).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free