Skip to content

Commit a65d0c3

Browse files
committed
Fixes typo
1 parent ba5dccb commit a65d0c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/baselines/reference/typeGuardFunction.errors.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunction.ts(157,46): err
174174
!!! error TS2339: Property 'baz' does not exist on type 'A'.
175175
}
176176

177-
// Error: Type Foo is not assignable to string
177+
// Error: Type Foo is not assignable to string
178178
var f: string = getObjectOfType(isFoo, [1, 2]);
179179
~
180180
!!! error TS2322: Type 'Foo' is not assignable to type 'string'.

tests/baselines/reference/typeGuardFunction.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if (isBaz(b)) {
136136
a.baz(); // Error
137137
}
138138

139-
// Error: Type Foo is not assignable to string
139+
// Error: Type Foo is not assignable to string
140140
var f: string = getObjectOfType(isFoo, [1, 2]);
141141

142142
// The parameter index and argument index for the type guard target is not matching.
@@ -287,7 +287,7 @@ function hasNonMathcingGenericType(a) {
287287
if (isBaz(b)) {
288288
a.baz(); // Error
289289
}
290-
// Error: Type Foo is not assignable to string
290+
// Error: Type Foo is not assignable to string
291291
var f = getObjectOfType(isFoo, [1, 2]);
292292
// The parameter index and argument index for the type guard target is not matching.
293293
if (hasMultipleParameters(0, a)) {

0 commit comments

Comments
 (0)