Skip to main content

applyInjections

Callable

  • applyInjections<TContext, TService>(controller: ControllerDeclaration<TContext, TService>): (container: Container) => TService

  • This utility allows to use a controller with injections in DI bindings


    Type parameters

    Parameters

    Returns (container: Container) => TService

      • (container: Container): TService
      • Parameters

        • container: Container

        Returns TService