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

Function getGlobalPromiseType

test/fixtures/snapshot/typescript.js:60717–60719  ·  view source on GitHub ↗
(reportErrors)

Source from the content-addressed store, hash-verified

60715 return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
60716 }
60717 function getGlobalPromiseType(reportErrors) {
60718 return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", /*arity*/ 1, reportErrors))) || emptyGenericType;
60719 }
60720 function getGlobalPromiseLikeType(reportErrors) {
60721 return (deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType("PromiseLike", /*arity*/ 1, reportErrors))) || emptyGenericType;
60722 }

Callers 4

createTypeCheckerFunction · 0.85
createPromiseTypeFunction · 0.85
getPromisedTypeOfPromiseFunction · 0.85

Calls 1

getGlobalTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…