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
Currently TypedArray constructors do not accept ReadonlyArray<number> even though the .from() static method only requires IArrayLike<number>. Here is the constructor and the static method for Uint8Array for instance. Is this intentional? Can we allow ReadonlyArray<number> in the constructor?
If this is consistent with the intended typing and design, I will send a PR.
Currently
TypedArrayconstructors do not acceptReadonlyArray<number>even though the.from()static method only requiresIArrayLike<number>. Here is the constructor and the static method forUint8Arrayfor instance. Is this intentional? Can we allowReadonlyArray<number>in the constructor?If this is consistent with the intended typing and design, I will send a PR.