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.

50 lines (24 loc) 732 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [ReferenceCounter](./rc-js-util.referencecounter.md) &gt; [(constructor)](./rc-js-util.referencecounter._constructor_.md) ## ReferenceCounter.(constructor) Constructs a new instance of the `ReferenceCounter` class **Signature:** ```typescript constructor(onZeroReference?: (key: TKey) => void); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> onZeroReference </td><td> (key: TKey) =&gt; void </td><td> _(Optional)_ </td></tr> </tbody></table>