(indexInfos, newInfo, union)
| 58349 | return signatures; |
| 58350 | } |
| 58351 | function appendIndexInfo(indexInfos, newInfo, union) { |
| 58352 | if (indexInfos) { |
| 58353 | for (var i = 0; i < indexInfos.length; i++) { |
| 58354 | var info = indexInfos[i]; |
| 58355 | if (info.keyType === newInfo.keyType) { |
| 58356 | indexInfos[i] = createIndexInfo(info.keyType, union ? getUnionType([info.type, newInfo.type]) : getIntersectionType([info.type, newInfo.type]), union ? info.isReadonly || newInfo.isReadonly : info.isReadonly && newInfo.isReadonly); |
| 58357 | return indexInfos; |
| 58358 | } |
| 58359 | } |
| 58360 | } |
| 58361 | return ts.append(indexInfos, newInfo); |
| 58362 | } |
| 58363 | /** |
| 58364 | * Converts an AnonymousType to a ResolvedType. |
| 58365 | */ |
no test coverage detected
searching dependent graphs…