UNPKG

fathom-typescript

Version:

Fathom's official TypeScript SDK.

26 lines 682 B
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.startCountingUnrecognized = startCountingUnrecognized; exports.unrecognized = unrecognized; function unrecognized(value) { globalCount++; return value; } let globalCount = 0; let refCount = 0; function startCountingUnrecognized() { refCount++; const start = globalCount; return { end: () => { const count = globalCount - start; if (--refCount === 0) globalCount = 0; return count; }, }; } //# sourceMappingURL=unrecognized.js.map