Skip to content

Typescript 5.7.2: Can't extend DataView - TS2508: No Base constructor has the specified number of type arguments #60808

Closed
@meszaros-lajos-gyorgy

Description

@meszaros-lajos-gyorgy

🔎 Search Terms

"dataview", "ts2508", "no base constructor has the specified number of type arguments"

🕗 Version & Regression Information

  • This changed between versions 5.6.3 and 5.7.2
  • This probably changed in commit or PR Make typed arrays generic over ArrayBufferLike #59417
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about DataView and TypedArray
  • I was unable to test this on prior versions because _______

⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.7.2#code/MYGwhgzhAEAa0FMAeAXBA7AJjAImFYAagJYIDu0A3gL5A

💻 Code

class X extends DataView {}

🙁 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions