(sourceInfo, targetInfo, reportErrors)
| 66783 | return result; |
| 66784 | } |
| 66785 | function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors) { |
| 66786 | var related = isRelatedTo(sourceInfo.type, targetInfo.type, 3 /* RecursionFlags.Both */, reportErrors); |
| 66787 | if (!related && reportErrors) { |
| 66788 | if (sourceInfo.keyType === targetInfo.keyType) { |
| 66789 | reportError(ts.Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType)); |
| 66790 | } |
| 66791 | else { |
| 66792 | reportError(ts.Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType)); |
| 66793 | } |
| 66794 | } |
| 66795 | return related; |
| 66796 | } |
| 66797 | function indexSignaturesRelatedTo(source, target, sourceIsPrimitive, reportErrors, intersectionState) { |
| 66798 | if (relation === identityRelation) { |
| 66799 | return indexSignaturesIdenticalTo(source, target); |
no test coverage detected