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

Function getGlobalPromiseLikeType

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

Source from the content-addressed store, hash-verified

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 }
60723 function getGlobalPromiseConstructorSymbol(reportErrors) {
60724 return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol("Promise", reportErrors));
60725 }

Callers 2

createTypeCheckerFunction · 0.85
createPromiseLikeTypeFunction · 0.85

Calls 1

getGlobalTypeFunction · 0.85

Tested by

no test coverage detected