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.

12 lines 328 B
/** * @public * Weak reference counter. */ export declare class ReferenceCounter<TKey extends object> { private onZeroReference; constructor(onZeroReference?: (key: TKey) => void); add(key: TKey): number; remove(key: TKey): number; private readonly store; } //# sourceMappingURL=reference-counter.d.ts.map