Interface FinalizationRegistryConstructor
interface FinalizationRegistryConstructor {
new FinalizationRegistryConstructor<T>(
cleanupCallback: (heldValue: T) => void,
): FinalizationRegistry<T>;
prototype: FinalizationRegistry<any>;
}
new FinalizationRegistryConstructor<T>(
cleanupCallback: (heldValue: T) => void,
): FinalizationRegistry<T>;
prototype: FinalizationRegistry<any>;
}
Index
Constructors
Properties
Constructors
constructor
- new FinalizationRegistryConstructor<T>(
cleanupCallback: (heldValue: T) => void,
): FinalizationRegistry<T> Type Parameters
Parameters
- cleanupCallback: (heldValue: T) => void
The callback to call after a value in the registry has been reclaimed.
Returns FinalizationRegistry<T>
- cleanupCallback: (heldValue: T) => void
Creates a finalization registry with an associated cleanup callback