diff --git a/src/BaseServerWithMiddlewares.ts b/src/BaseServerWithMiddlewares.ts index c143902..4c414fe 100644 --- a/src/BaseServerWithMiddlewares.ts +++ b/src/BaseServerWithMiddlewares.ts @@ -378,5 +378,5 @@ export type Middleware = ( next: ( req: RequestType, ctx: FakeRestContext, - ) => Promise | BaseResponse, -) => Promise | BaseResponse | null | Promise; + ) => Promise | BaseResponse | null, +) => Promise | BaseResponse | null;