Middleware implementation as an object with invocation method.
Allows middleware to be defined as a class or object with an invoke method.
The priority property determines the order of execution (lower priority executes first).
Type Parameters
TParameters extends unknown[] = unknown[]
Type of arguments passed to the function
TReturn = unknown
Type of value returned from the function
Type declaration
Optionalpriority?: number
Execution priority. Lower values execute first. Defaults to 0.
Middleware implementation as an object with invocation method.
Allows middleware to be defined as a class or object with an
invokemethod. The priority property determines the order of execution (lower priority executes first).