DocumentEventMap Class — astro Architecture
Architecture documentation for the DocumentEventMap class in view-transitions.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 0a117742_e70a_6fef_8beb_c161997f2705["DocumentEventMap"] 83b9a432_cb59_d6d8_a07a_806a3dc201bf["view-transitions.ts"] 0a117742_e70a_6fef_8beb_c161997f2705 -->|defined in| 83b9a432_cb59_d6d8_a07a_806a3dc201bf
Relationship Graph
Source Code
packages/astro/src/types/public/view-transitions.ts lines 32–40
declare global {
interface DocumentEventMap {
'astro:before-preparation': TransitionBeforePreparationEvent;
'astro:after-preparation': Event;
'astro:before-swap': TransitionBeforeSwapEvent;
'astro:after-swap': Event;
'astro:page-load': Event;
}
}
Domain
Source
Frequently Asked Questions
What is the DocumentEventMap class?
DocumentEventMap is a class in the astro codebase, defined in packages/astro/src/types/public/view-transitions.ts.
Where is DocumentEventMap defined?
DocumentEventMap is defined in packages/astro/src/types/public/view-transitions.ts at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free