APIRoute Type — astro Architecture
Architecture documentation for the APIRoute type/interface in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 43f11dd0_b464_1816_8d16_512dfb6def6d["APIRoute"] 669e29cb_6284_b440_c979_7aeecf0609ce["common.ts"] 43f11dd0_b464_1816_8d16_512dfb6def6d -->|defined in| 669e29cb_6284_b440_c979_7aeecf0609ce style 43f11dd0_b464_1816_8d16_512dfb6def6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/types/public/common.ts lines 102–105
export type APIRoute<
APIProps extends Record<string, any> = Record<string, any>,
APIParams extends Record<string, string | undefined> = Record<string, string | undefined>,
> = (context: APIContext<APIProps, APIParams>) => Response | Promise<Response>;
Defined In
Source
Frequently Asked Questions
What is the APIRoute type?
APIRoute is a type/interface in the astro codebase, defined in packages/astro/src/types/public/common.ts.
Where is APIRoute defined?
APIRoute is defined in packages/astro/src/types/public/common.ts at line 102.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free