Type Alias Middleware<I1, O1, Args, I2, O2>

Middleware: (input: I2, next: (input: I1) => O1, ...args: Args) => O2

Type Parameters

  • I1
  • O1
  • Args extends unknown[]
  • I2 = I1
  • O2 = O1

Type declaration

    • (input: I2, next: (input: I1) => O1, ...args: Args): O2
    • Parameters

      Returns O2