BitGo/api-ts

Middleware implementation prevents use of middleware that requires the `next` function

jonball4 opened this issue · 0 comments

Taking over the next function limits the ability to use middleware that requires passing the next function, which is the case with some functions in bitgo's common library.

export type MiddlewareFn<T extends {}> = (
req: express.Request,
res: express.Response,
) => Promise<T>;