Skip to content

Array.copyWithin() signature is incorrect #53334

@unional

Description

@unional

Bug Report

The signature should be:

interface Array<T> {
  copyWithin(target: number, start?: number, end?: number): this
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin

TS: 5.0.2

🙁 Actual behavior

Currently, it is:

interface Array<T> {
  copyWithin(target: number, start: number, end?: number): this
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions