MiddlewareFn: (request: Request<TEvent, TResult, TErr, TContext>) => unknown

This type represents the shape of a middleware function that makes up a middleware object.

Type Parameters

  • TEvent = unknown
  • TResult = unknown
  • TErr = Error
  • TContext extends Context = Context

Type declaration