MCPcopy Create free account
hub / github.com/microsoft/tslib / accept

Function accept

tslib.js:116–116  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

114
115 __esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
116 function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
117 var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
118 var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
119 var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});

Callers 1

tslib.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…