Skip to content

Path2D missing string construtor #14660

Closed
@akarzazi

Description

@akarzazi

TypeScript Version: 2.2.1

Code

var p = new Path2D("M10 10 h 80 v 80 h -80 Z");

Expected behavior:
works

Actual behavior:
string is not assignable to Path2D

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions