Skip to content

the return type of Int8Array::toReversed in es2023.array.d.ts is wrong #59162

@noshiro-pf

Description

@noshiro-pf

⚙ Compilation target

ES2023

⚙ Library

es2023.array.d.ts

Missing / Incorrect Definition

interface Int8Array {
  ...
  toReversed(): Uint8Array;
  ...
}

Sample Code

The correct definition should be:


interface Int8Array {
  ...
  toReversed(): Int8Array;
  ...
}

Documentation Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions