constructor() — astro Function Reference
Architecture documentation for the constructor() function in events.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ed73202a_7510_9114_87d2_65fdb0bae92c["constructor()"] 576a5bf5_aaca_bfee_a496_851125487e15["TransitionBeforePreparationEvent"] ed73202a_7510_9114_87d2_65fdb0bae92c -->|defined in| 576a5bf5_aaca_bfee_a496_851125487e15 7284f264_729e_57c9_cea7_29a63bed9592["constructor()"] 7284f264_729e_57c9_cea7_29a63bed9592 -->|calls| ed73202a_7510_9114_87d2_65fdb0bae92c 7284f264_729e_57c9_cea7_29a63bed9592["constructor()"] ed73202a_7510_9114_87d2_65fdb0bae92c -->|calls| 7284f264_729e_57c9_cea7_29a63bed9592 style ed73202a_7510_9114_87d2_65fdb0bae92c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/transitions/events.ts lines 81–111
constructor(
from: URL,
to: URL,
direction: Direction | string,
navigationType: NavigationTypeString,
sourceElement: Element | undefined,
info: any,
newDocument: Document,
signal: AbortSignal,
formData: FormData | undefined,
loader: (event: TransitionBeforePreparationEvent) => Promise<void>,
) {
super(
TRANSITION_BEFORE_PREPARATION,
{ cancelable: true },
from,
to,
direction,
navigationType,
sourceElement,
info,
newDocument,
signal,
);
this.formData = formData;
this.loader = loader.bind(this, this);
Object.defineProperties(this, {
formData: { enumerable: true },
loader: { enumerable: true, writable: true },
});
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/transitions/events.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/transitions/events.ts at line 81.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free