ActionHandler Type — astro Architecture
Architecture documentation for the ActionHandler type/interface in types.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e9f2ec27_c65b_d6fb_98e1_9efb073d9442["ActionHandler"] bdc6ff27_167d_e3f3_67b4_3308b4d8fd29["types.ts"] e9f2ec27_c65b_d6fb_98e1_9efb073d9442 -->|defined in| bdc6ff27_167d_e3f3_67b4_3308b4d8fd29 style e9f2ec27_c65b_d6fb_98e1_9efb073d9442 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/actions/runtime/types.ts lines 9–11
export type ActionHandler<TInputSchema, TOutput> = TInputSchema extends z.$ZodType
? (input: z.infer<TInputSchema>, context: ActionAPIContext) => MaybePromise<TOutput>
: (input: any, context: ActionAPIContext) => MaybePromise<TOutput>;
Defined In
Source
Frequently Asked Questions
What is the ActionHandler type?
ActionHandler is a type/interface in the astro codebase, defined in packages/astro/src/actions/runtime/types.ts.
Where is ActionHandler defined?
ActionHandler is defined in packages/astro/src/actions/runtime/types.ts at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free