rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
11 lines • 625 B
TypeScript
import type { IManagedObject, PointerDebugMetadata } from "../lifecycle/manged-resources.js";
/**
* @public
* Wrapper of {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry} for shared objects,
* useful for checking if the shared object was properly disposed. Available in debug contexts only.
*/
export declare class DebugSharedObjectLifeCycleChecker {
registerFinalizationCheck(sharedObject: IManagedObject, metadata: PointerDebugMetadata | null): void;
private finalizationRegistry;
}
//# sourceMappingURL=debug-shared-object-life-cycle-checker.d.ts.map