Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13.8k
[lib.d.ts] Incorrect typing for CanvasPattern #10184
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
TypeScript Version: 1.8.34
Code
Expected behavior:
Fails to compile due to
[]and0not being validCanvasPatterns.Actual behavior:
Successfully compiles, probably due to
CanvasPatternbeing declared as an emptyinterface, which is obviously implemented by all objects. At runtime, the style is solid black.