Empty constructors for TypedArrays are not allowed #19680
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
ES2017
Relates to the ES2017 Spec
Fixed
A PR has been merged for this issue
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
Typescript currently does not support empty constructors of TypedArrays, as in mdn UInt8Array, thx to sindresorhus for pointing that out.
TypeScript Version: 2.7.0-dev.201xxxxx
Code
Expected behavior:
works
Actual behavior:
Error: Expected 1-3 arguments, but got 0.
The text was updated successfully, but these errors were encountered: