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
When I try to compile with tsc@2.1.4, I get the following error:
error TS2322: Type '{ [n: number]: number; length: number; }' is not assignable to type 'number[]'.
Property 'push' is missing in type '{ [n: number]: number; length: number; }'.
With tsc@2.2.1 I no longer get an error. This should not compile as bar is not of type Array<number>.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.2.1 / 2.1.4
Code
When I try to compile with
tsc@2.1.4
, I get the following error:With
tsc@2.2.1
I no longer get an error. This should not compile asbar
is not of typeArray<number>
.The text was updated successfully, but these errors were encountered: