Interface FinalizationRegistryConstructor

    interface FinalizationRegistryConstructor {
        new FinalizationRegistryConstructornew <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.

          • (heldValue): void
          • Parameters

            • heldValue: T

            Returns void

      Returns FinalizationRegistry<T>

    Properties

    prototype: FinalizationRegistry<any>