A middleware is a function that encapsulates another function and transforms it
Input type of the middleware
(Tranformed) Output type of the middleware
(Tranformed) Input type of the encapsulated function
Output type of the encapsulated function
They can both transform the input and output of the function, and add additional functionality around it.
Generated using TypeDoc
A middleware is a function that encapsulates another function and transforms it