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.

16 lines 614 B
import type { IManagedResourceNode } from "./manged-resources.js"; /** * @public * Provides a mechanism for reference counted objects to link to each other, respecting their lifecycles. */ export interface IManagedResourceLinks { isLinkedTo(ref: IManagedResourceNode): boolean; /** * Link this node to `ref`, i.e. this node owns `ref`. */ link(ref: IManagedResourceNode): IManagedResourceLinks; unlink(ref: IManagedResourceNode): IManagedResourceLinks; unlinkAll(): void; getLinkedNodes(): readonly IManagedResourceNode[]; } //# sourceMappingURL=managed-resource-links.d.ts.map