Options
All
  • Public
  • Public/Protected
  • All
Menu

Module framework/custom

Index

Functions

  • middleware<OrigReqType, OrigRespType>(wrapRequest?: ((req: OrigReqType) => BaseRequest), wrapResponse?: ((req: OrigRespType) => BaseResponse)): ((request: OrigReqType, response: OrigRespType, next?: NextFunction) => Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>)
  • Type Parameters

    Parameters

    Returns ((request: OrigReqType, response: OrigRespType, next?: NextFunction) => Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>)

      • (request: OrigReqType, response: OrigRespType, next?: NextFunction): Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>
      • Parameters

        • request: OrigReqType
        • response: OrigRespType
        • Optional next: NextFunction

        Returns Promise<{ error: undefined; handled: boolean } | { error: any; handled: undefined }>

Generated using TypeDoc