Skip to content

Commit

Permalink
remove unnecesary wrap around the Middleware return type
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmarpz committed Aug 8, 2023
1 parent 75ae140 commit 24eacd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type InputSetterFn<In, Ls> = <Z extends z.ZodTypeAny>(
schema: Z
) => ServerAction<In & z.infer<typeof schema>, Ls>;

type MiddlewareFn<In, Ls, Out> = (input: In, locals: Ls) => Promise<Out>;
type MiddlewareFn<In, Ls, Out> = (input: In, locals: Ls) => Out;

type HandlerFn<In, Ls> = <R>(
fn: (input: In, locals: Ls) => R
Expand Down

0 comments on commit 24eacd2

Please sign in to comment.