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

Function adopt

tslib.js:165–165  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

163
164 __awaiter = function (thisArg, _arguments, P, generator) {
165 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
166 return new (P || (P = Promise))(function (resolve, reject) {
167 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
168 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }

Callers 1

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