You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1920,7 +1920,7 @@
1920
1920
"category": "Error",
1921
1921
"code": 2358
1922
1922
},
1923
-
"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.": {
1923
+
"The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method.": {
1924
1924
"category": "Error",
1925
1925
"code": 2359
1926
1926
},
@@ -3691,6 +3691,14 @@
3691
3691
"category": "Error",
3692
3692
"code": 2859
3693
3693
},
3694
+
"The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method.": {
3695
+
"category": "Error",
3696
+
"code": 2860
3697
+
},
3698
+
"An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression.": {
3699
+
"category": "Error",
3700
+
"code": 2861
3701
+
},
3694
3702
3695
3703
"Import declaration '{0}' is using private name '{1}'.": {
0 commit comments