Interface MiddlewareComposer

Composer API for middleware functions.

interface MiddlewareComposer {
    use<MethodKey extends keyof Container>(
        key: MethodKey,
        wrap: Container[MethodKey] extends Function
            ? (next: any[any]) => any[any]
            : never,
    ): MiddlewareComposer;
}

Methods

Methods