UNPKG

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.

15 lines 933 B
import { type IManagedObject, type IManagedResourceNode, IPointer, PointerDebugMetadata } from "../../lifecycle/manged-resources.js"; import { IDebugProtectedViewFactory } from "../../debug/i-debug-protected-view-factory.js"; import type { ILifecycleStrategy } from "./i-lifecycle-strategy.js"; /** * @public * The recommended lifecycle strategy. This strategy only adds debug checks for leaking objects; you must unlink * objects from their owners once they are finished with them. */ export declare class ReferenceCountedStrategy implements ILifecycleStrategy { createNode(owner: IManagedResourceNode | null): IManagedResourceNode; onSharedPointerCreated(sharedPtr: IManagedObject & IPointer, metadata: PointerDebugMetadata, protectedView: IDebugProtectedViewFactory | null): void; onManagedObjectCreated(object: IManagedObject): void; private wrapper; } //# sourceMappingURL=reference-counted-strategy.d.ts.map