Function registerDependency

  • Modifies dependency resolution for a specific ID.

    If a function is passed, it will be called, passing the target constructor, every time that ID needs to be resolved. Otherwise, the passed object is returned directly.

    Type Parameters

    • T

    Parameters

    • dependency: DependencyRegistration
    • Optional id: string

    Returns void