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

Function getGlobalType

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

Source from the content-addressed store, hash-verified

60673 return resolveName(undefined, name, meaning, diagnostic, name, /*isUse*/ false, /*excludeGlobals*/ false, /*getSpellingSuggestions*/ false);
60674 }
60675 function getGlobalType(name, arity, reportErrors) {
60676 var symbol = getGlobalTypeSymbol(name, reportErrors);
60677 return symbol || reportErrors ? getTypeOfGlobalSymbol(symbol, arity) : undefined;
60678 }
60679 function getGlobalTypedPropertyDescriptorType() {
60680 // We always report an error, so store a result in the event we could not resolve the symbol to prevent reporting it multiple times
60681 return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType("TypedPropertyDescriptor", /*arity*/ 1, /*reportErrors*/ true) || emptyGenericType);

Calls 2

getGlobalTypeSymbolFunction · 0.85
getTypeOfGlobalSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…