Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
noshiro-pf opened this issue Jul 7, 2024 · 0 comments · Fixed by #59163
Closed

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

noshiro-pf opened this issue Jul 7, 2024 · 0 comments · Fixed by #59163
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript

Comments

@noshiro-pf
Copy link
Contributor

⚙ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants