From 24eacd26a3eadce90e7bb990e384f73a2522a27a Mon Sep 17 00:00:00 2001 From: andresmarpz Date: Tue, 8 Aug 2023 20:51:49 -0300 Subject: [PATCH] remove unnecesary wrap around the Middleware return type --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 489ad6e..d0484f0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,7 +4,7 @@ type InputSetterFn = ( schema: Z ) => ServerAction, Ls>; -type MiddlewareFn = (input: In, locals: Ls) => Promise; +type MiddlewareFn = (input: In, locals: Ls) => Out; type HandlerFn = ( fn: (input: In, locals: Ls) => R