File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5200,7 +5200,7 @@ namespace ts {
5200
5200
let hasDifferentParameterIndex = source.typePredicate.parameterIndex !== target.typePredicate.parameterIndex;
5201
5201
let hasDifferentTypes: boolean;
5202
5202
if (hasDifferentParameterIndex ||
5203
- (hasDifferentTypes = !isTypeIdenticalTo (source.typePredicate.type, target.typePredicate.type))) {
5203
+ (hasDifferentTypes = !isTypeSubtypeOf (source.typePredicate.type, target.typePredicate.type))) {
5204
5204
5205
5205
if (reportErrors) {
5206
5206
let sourceParamText = source.typePredicate.parameterName;
@@ -5234,7 +5234,9 @@ namespace ts {
5234
5234
}
5235
5235
5236
5236
let targetReturnType = getReturnTypeOfSignature(target);
5237
- if (targetReturnType === voidType) return result;
5237
+ if (targetReturnType === voidType) {
5238
+ return result;
5239
+ }
5238
5240
let sourceReturnType = getReturnTypeOfSignature(source);
5239
5241
5240
5242
return result & isRelatedTo(sourceReturnType, targetReturnType, reportErrors);
You can’t perform that action at this time.
0 commit comments