File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14767,20 +14767,20 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
14767
14767
let result = carveoutResult(type, kind);
14768
14768
if (result) return result;
14769
14769
// The original logical for the non-carveout case is recorded in the block comment below, for the record.
14770
- //result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
14770
+ // result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
14771
14771
// if (kind === SignatureKind.Call && !length(result) && type.flags & TypeFlags.Union) {
14772
14772
// if ((type as UnionType).arrayFallbackSignatures) {
14773
14773
// return (type as UnionType).arrayFallbackSignatures!;
14774
14774
// }
14775
14775
// return (type as UnionType).arrayFallbackSignatures = result;
14776
14776
// }
14777
- if (kind === SignatureKind.Call && /*!length(result) && */ type.flags & TypeFlags.Union) {
14777
+ if (kind === SignatureKind.Call && type.flags & TypeFlags.Union) {
14778
14778
if ((type as UnionType).arrayFallbackSignatures) {
14779
14779
return (type as UnionType).arrayFallbackSignatures!;
14780
14780
}
14781
14781
}
14782
14782
result = getSignaturesOfStructuredType(getReducedApparentType(type), kind);
14783
- if (kind === SignatureKind.Call && /*!length(result) && */ type.flags & TypeFlags.Union) {
14783
+ if (kind === SignatureKind.Call && type.flags & TypeFlags.Union) {
14784
14784
(type as UnionType).arrayFallbackSignatures = result;
14785
14785
}
14786
14786
return result;
You can’t perform that action at this time.
0 commit comments