Skip to content

Commit 4f21fb5

Browse files
committed
fix typo
1 parent 06888e8 commit 4f21fb5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/baselines/reference/noImplicitAnyInCastExpression.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
// Expr type not assignable to target type
1111
(<IFoo>{ a: null });
1212

13-
// Expr type assignanle to target type
13+
// Expr type assignable to target type
1414
(<IFoo>{ a: 2, b: undefined });
1515

16-
// Niether types is assignable to each other
16+
// Neither types is assignable to each other
1717
(<IFoo>{ c: null });
1818
~~~~~~~~~~~~~~~~~
1919
!!! Neither type '{ c: null; }' nor type 'IFoo' is assignable to the other:

tests/baselines/reference/noImplicitAnyInCastExpression.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ interface IFoo {
1010
// Expr type not assignable to target type
1111
(<IFoo>{ a: null });
1212

13-
// Expr type assignanle to target type
13+
// Expr type assignable to target type
1414
(<IFoo>{ a: 2, b: undefined });
1515

16-
// Niether types is assignable to each other
16+
// Neither types is assignable to each other
1717
(<IFoo>{ c: null });
1818

1919
//// [noImplicitAnyInCastExpression.js]
2020
// verify no noImplictAny errors reported with cast expression
2121
// Expr type not assignable to target type
2222
{ a: null };
23-
// Expr type assignanle to target type
23+
// Expr type assignable to target type
2424
{ a: 2, b: undefined };
25-
// Niether types is assignable to each other
25+
// Neither types is assignable to each other
2626
{ c: null };

tests/cases/compiler/noImplicitAnyInCastExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ interface IFoo {
1010
// Expr type not assignable to target type
1111
(<IFoo>{ a: null });
1212

13-
// Expr type assignanle to target type
13+
// Expr type assignable to target type
1414
(<IFoo>{ a: 2, b: undefined });
1515

16-
// Niether types is assignable to each other
16+
// Neither types is assignable to each other
1717
(<IFoo>{ c: null });

0 commit comments

Comments
 (0)