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
Expected behavior: foo and bar are destructured correctly
All JS engine with support for TypedArrays and destructuring handles this code without any problem
Actual behavior:
Error: error TS2461: Type 'Float64Array' is not an array type.
The text was updated successfully, but these errors were encountered:
miklossuveges
changed the title
Unable to use destructure TypedArrays
Unable to destructure TypedArrays
Dec 11, 2017
@rbuckton I was wrong; slice is present on the typed arrays. Does anything stop us from just removing the type error and running with the current emit?
TypeScript Version: 2.6.2
Code
Expected behavior:
foo
andbar
are destructured correctlyAll JS engine with support for TypedArrays and destructuring handles this code without any problem
Actual behavior:
Error:
error TS2461: Type 'Float64Array' is not an array type.
The text was updated successfully, but these errors were encountered: