MCPcopy Create free account
hub / github.com/nodejs/node / getAwaitedType

Function getAwaitedType

test/fixtures/snapshot/typescript.js:81396–81399  ·  view source on GitHub ↗

* Gets the "awaited type" of a type. * * The "awaited type" of an expression is its "promised type" if the expression is a * Promise-like type; otherwise, it is the type of the expression. If the "promised * type" is itself a Promise-like, the "promised type" is r

(type, errorNode, diagnosticMessage, arg0)

Source from the content-addressed store, hash-verified

81394 * This is used to reflect the runtime behavior of the `await` keyword.
81395 */
81396 function getAwaitedType(type, errorNode, diagnosticMessage, arg0) {
81397 var awaitedType = getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, arg0);
81398 return awaitedType && createAwaitedTypeIfNeeded(awaitedType);
81399 }
81400 /**
81401 * Gets the "awaited type" of a type without introducing an `Awaited<T>` wrapper.
81402 *

Callers 7

createTypeCheckerFunction · 0.85
invocationErrorDetailsFunction · 0.85
checkYieldExpressionFunction · 0.85
getAwaitedTypeOfPromiseFunction · 0.85
checkAwaitedTypeFunction · 0.85

Calls 2

getAwaitedTypeNoAliasFunction · 0.85

Tested by

no test coverage detected