Skip to content

Commit

Permalink
fix: bad Handler type (#11448)
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev authored Jul 10, 2024
1 parent 619f07d commit 88e2b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/actions/runtime/virtual/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 88e2b43

Please sign in to comment.