MCPcopy Index your code
hub / github.com/nodejs/node / getGlobalTypeOrUndefined

Function getGlobalTypeOrUndefined

test/fixtures/snapshot/typescript.js:60759–60763  ·  view source on GitHub ↗
(name, arity)

Source from the content-addressed store, hash-verified

60757 return (deferredGlobalIteratorReturnResultType || (deferredGlobalIteratorReturnResultType = getGlobalType("IteratorReturnResult", /*arity*/ 1, reportErrors))) || emptyGenericType;
60758 }
60759 function getGlobalTypeOrUndefined(name, arity) {
60760 if (arity === void 0) { arity = 0; }
60761 var symbol = getGlobalSymbol(name, 788968 /* SymbolFlags.Type */, /*diagnostic*/ undefined);
60762 return symbol && getTypeOfGlobalSymbol(symbol, arity);
60763 }
60764 function getGlobalExtractSymbol() {
60765 // We always report an error, so cache a result in the event we could not resolve the symbol to prevent reporting it multiple times
60766 deferredGlobalExtractSymbol || (deferredGlobalExtractSymbol = getGlobalTypeAliasSymbol("Extract", /*arity*/ 2, /*reportErrors*/ true) || unknownSymbol);

Callers 1

initializeTypeCheckerFunction · 0.85

Calls 2

getGlobalSymbolFunction · 0.85
getTypeOfGlobalSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…