Skip to content

Typescript does not support proper Touch constructor #15874

Closed
@dblVs

Description

@dblVs

Typescript does not support the valid Touch constructor

TypeScript Version: 2.3.1

Code

const a = new Touch({
  identifier: 2,
  target: document.body
})

Expected behavior:
It should not error because this is the valid constructor for Touch.
Actual behavior:
Errors since the constructor for Touch does not accept any parameters.

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