Interface FinalizationRegistryConstructor

    interface FinalizationRegistryConstructor {
        new FinalizationRegistryConstructor<T>(
            cleanupCallback: (heldValue: T) => void,
        ): FinalizationRegistry<T>;
        prototype: FinalizationRegistry<any>;
    }

    Constructors

    Properties

    Constructors

    • Creates a finalization registry with an associated cleanup callback

      Type Parameters

      • T

      Parameters

      • cleanupCallback: (heldValue: T) => void

        The callback to call after a value in the registry has been reclaimed.

      Returns FinalizationRegistry<T>

    Properties

    prototype: FinalizationRegistry<any>