0
Fork 0
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:
Ben Holmes 2024-07-10 08:11:39 -04:00 committed by GitHub
parent 619f07db70
commit 88e2b43305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,