(unionType, type)
| 69510 | return result !== unknownType ? result : undefined; |
| 69511 | } |
| 69512 | function getMatchingUnionConstituentForType(unionType, type) { |
| 69513 | var keyPropertyName = getKeyPropertyName(unionType); |
| 69514 | var propType = keyPropertyName && getTypeOfPropertyOfType(type, keyPropertyName); |
| 69515 | return propType && getConstituentTypeForKeyType(unionType, propType); |
| 69516 | } |
| 69517 | function getMatchingUnionConstituentForObjectLiteral(unionType, node) { |
| 69518 | var keyPropertyName = getKeyPropertyName(unionType); |
| 69519 | var propNode = keyPropertyName && ts.find(node.properties, function (p) { return p.symbol && p.kind === 296 /* SyntaxKind.PropertyAssignment */ && |
no test coverage detected
searching dependent graphs…