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
@MartinJohns could you please provide an example? I tried the following:
classXextendsDataView<Uint8Array>{}
But this gave me another error:
Type 'Uint8Array<ArrayBufferLike>' does not satisfy the constraint 'ArrayBufferLike & { BYTES_PER_ELEMENT?: undefined; }'.
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'ArrayBuffer & { BYTES_PER_ELEMENT?: undefined; }'.
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type '{ BYTES_PER_ELEMENT?: undefined; }'.
Types of property 'BYTES_PER_ELEMENT' are incompatible.
Type 'number' is not assignable to type 'undefined'.
🔎 Search Terms
"dataview", "ts2508", "no base constructor has the specified number of type arguments"
🕗 Version & Regression Information
ArrayBufferLike
#59417⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.7.2#code/MYGwhgzhAEAa0FMAeAXBA7AJjAImFYAagJYIDu0A3gL5A
💻 Code
🙁 Actual behavior
error TS2508: No base constructor has the specified number of type arguments.
🙂 Expected behavior
build should run without any issues and class X should use the default constructor of DataView
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: