Function qualify

  • Returns the qualified type for the given type and name. It is guaranteed to always return the same instance for the same combination of type and name.

    This function is just a short-alias for QualifiedType.for.

    Type Parameters

    • T extends Class

      The type to qualify with a name.

    Parameters

    • type: T

      The type to qualify.

    • name: string | symbol

      The name/symbol to qualify the type with.

    Returns QualifiedType<T>