Type Alias MiddlewareFn<TParameters, TReturn>

Middleware implementation as a function.

A function-based middleware that receives MiddlewareArgs and returns the result of processing. This is the most common and flexible way to define middleware.

Type Parameters

  • TParameters extends unknown[] = unknown[]

    Type of arguments passed to the function

  • TReturn = unknown

    Type of value returned from the function

    IMPORT_PATH: @daiso-tech/core/middleware