@lppedd/di-wise-neo - v0.6.0
    Preparing search index...

    Function setClassIdentityMapping

    • Registers a mapping between a generated (e.g., decorated or proxied) constructor and its original, underlying constructor.

      This allows libraries or consumers that manipulate constructors, such as through class decorators, to inform the DI system about the real "identity" of a class.

      Type Parameters

      • T extends object

      Parameters

      • transformedClass: Constructor<T>

        The constructor function returned by a class decorator or factory.

      • originalClass: Constructor<T>

        The original constructor function.

      Returns void

      This API affects the core class identity resolution mechanism of the DI system. Incorrect usage may cause metadata to be misassociated, leading to subtle errors. Use only when manipulating constructors (e.g., via decorators or proxies), and ensure the mapping is correct.