(arrayContextualType, index)
| 72825 | // it is the type of the numeric index signature in T. Otherwise, in ES6 and higher, the contextual type is the iterated |
| 72826 | // type of T. |
| 72827 | function getContextualTypeForElementExpression(arrayContextualType, index) { |
| 72828 | return arrayContextualType && (getTypeOfPropertyOfContextualType(arrayContextualType, "" + index) |
| 72829 | || mapType(arrayContextualType, function (t) { return getIteratedTypeOrElementType(1 /* IterationUse.Element */, t, undefinedType, /*errorNode*/ undefined, /*checkAssignability*/ false); }, |
| 72830 | /*noReductions*/ true)); |
| 72831 | } |
| 72832 | // In a contextually typed conditional expression, the true/false expressions are contextually typed by the same type. |
| 72833 | function getContextualTypeForConditionalOperand(node, contextFlags) { |
| 72834 | var conditional = node.parent; |
no test coverage detected