Function Inject

  • Mark the given class property to be injected by the container. If a key is specified, that DependencyKey will be injected. Otherwise, the DependencyKey is inferred from the type annotation.

    Parameters

    • Optional key: any
    • debug: {
          debug: undefined | boolean;
      } = {}
      • debug: undefined | boolean

    Returns PropertyDecorator