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

Function __importStar

tslib.es6.js:275–281  ·  view source on GitHub ↗
(mod)

Source from the content-addressed store, hash-verified

273};
274
275export function __importStar(mod) {
276 if (mod && mod.__esModule) return mod;
277 var result = {};
278 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
279 __setModuleDefault(result, mod);
280 return result;
281}
282
283export function __importDefault(mod) {
284 return (mod && mod.__esModule) ? mod : { default: mod };

Callers

nothing calls this directly

Calls 1

ownKeysFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…