Interface Middleware

Middleware function that can be used to extend the container.

const logger: Middleware = (composer, _api) => {
composer
.use("resolve", (next) => (...args) => {
console.log("resolve", args);
return next(...args);
})
.use("resolveAll", (next) => (...args) => {
console.log("resolveAll", args);
return next(...args);
});
};