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

Function accept

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

Source from the content-addressed store, hash-verified

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

Callers 1

__esDecorateFunction · 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…