Class ModuleTypeSet

The ModuleTypeSet class implements Set-like type that allows storing a Type that is aware of its origin module. This is useful when a type needs to be registered as a part of a decorator, but it also needs to be cleared once the module that originates the type has been removed.

Constructors

Methods

Constructors

Methods

  • Iterates over the types in the set.

    Returns Generator<Type, any, any>

  • Adds a new type to the module set.

    Parameters

    • type: Type

      The type to be inserted into the set.

    Returns void

  • Clears all values on the set.

    Returns void

  • Iterates over all items on the set.

    Parameters

    • callback: ((value: Type) => void)
        • (value): void
        • Parameters

          Returns void

    Returns void