Update TypedArray
constructors to disallow invalid (typedArray, byteOffset, byteLength)
#44191
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
lib Update Request
Configuration Check
My compilation target is
ES2020
and my lib isthe default
.Missing / Incorrect Definition
TypedArray
constructors allows passing(TypedArray, byteOffset, byteLength)
, when onlybyteOffset
andbyteLength
are only used when passing in anArrayBuffer
Sample Code
Documentation Link
MDN on
Uint8Array
constructorThe text was updated successfully, but these errors were encountered: