mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
fix: bad Handler type (#11448)
This commit is contained in:
parent
619f07db70
commit
88e2b43305
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export type ActionHandler<TInputSchema, TOutput> = TInputSchema extends z.ZodTyp
|
|||
? (input: z.infer<TInputSchema>, context: ActionAPIContext) => MaybePromise<TOutput>
|
||||
: (input: any, context: ActionAPIContext) => MaybePromise<TOutput>;
|
||||
|
||||
export type ActionReturnType<T extends Handler<any, any>> = Awaited<ReturnType<T>>;
|
||||
export type ActionReturnType<T extends ActionHandler<any, any>> = Awaited<ReturnType<T>>;
|
||||
|
||||
export type ActionClient<
|
||||
TOutput,
|
||||
|
|
Loading…
Add table
Reference in a new issue