Type alias MiddlewareFunction

MiddlewareFunction: ((ctx, args, next) => Promise<void>)

Type declaration

    • (ctx, args, next): Promise<void>
    • Middleware functions are designed to interpose on method calls, allowing preprocessing and postprocessing.

      Parameters

      • ctx: Context
      • args: any[]
      • next: ((newArgs) => Promise<any>)
          • (newArgs): Promise<any>
          • Parameters

            • newArgs: any[]

            Returns Promise<any>

      Returns Promise<void>

Generated using TypeDoc