UNPKG

autotel

Version:
19 lines (17 loc) 717 B
//#region src/trace-factory-validation.ts /** * Validate the two stages of Autotel's public factory wrappers without * coupling helper modules to the large functional tracing implementation. */ function assertTraceFactory(helperName, value, stage = "factory") { if (typeof value === "function") return; throw new TypeError(stage === "factory" ? `${helperName}: expected a factory (ctx) => (...args) => result` : `${helperName}: factory must return a function; expected (ctx) => (...args) => result`); } //#endregion Object.defineProperty(exports, 'assertTraceFactory', { enumerable: true, get: function () { return assertTraceFactory; } }); //# sourceMappingURL=trace-factory-validation-Dc8epn87.cjs.map