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

Function checkIteratedTypeOrElementType

test/fixtures/snapshot/typescript.js:82951–82956  ·  view source on GitHub ↗
(use, inputType, sentType, errorNode)

Source from the content-addressed store, hash-verified

82949 return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression);
82950 }
82951 function checkIteratedTypeOrElementType(use, inputType, sentType, errorNode) {
82952 if (isTypeAny(inputType)) {
82953 return inputType;
82954 }
82955 return getIteratedTypeOrElementType(use, inputType, sentType, errorNode, /*checkAssignability*/ true) || anyType;
82956 }
82957 /**
82958 * When consuming an iterable type in a for..of, spread, or iterator destructuring assignment
82959 * we want to get the iterated type of an iterable for ES2015 or later, or the iterated type

Calls 2

isTypeAnyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…