Function resolveAll

  • Resolves all dependencies from this container and it's children either by its dependency ID or through a class constructor for auto-injectable classes.

    Type Parameters

    • T

    Parameters

    • instance: any
    • dependencyId: DependencyId

    Returns (
        T & Dependency & {
            "[DEPENDENCY_ID]": DependencyId;
            "[PROXYDI_CONTAINER]": IProxyDiContainer;
        }
    )[]

    Array with all founded dependence instances, could be empty

    • [DEPENDENCY_ID]: DependencyId

      Unique identifier that could use to resolve this instance from container where it was registered

    • [PROXYDI_CONTAINER]: IProxyDiContainer

      ProxyDi container in which this instance was registered

  • Resolves all dependencies from this container and it's children either by its dependency ID or through a class constructor for auto-injectable classes.

    Type Parameters

    • T extends {}

    Parameters

    • instance: any
    • SomeClass: T

    Returns (
        InstanceType<T> & Dependency & {
            "[DEPENDENCY_ID]": DependencyId;
            "[PROXYDI_CONTAINER]": IProxyDiContainer;
        }
    )[]

    Array with all founded dependence instances, could be empty

    • [DEPENDENCY_ID]: DependencyId

      Unique identifier that could use to resolve this instance from container where it was registered

    • [PROXYDI_CONTAINER]: IProxyDiContainer

      ProxyDi container in which this instance was registered