[lib.d.ts] Incorrect typing for CanvasPattern #10184
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 1.8.34
Code
Expected behavior:
Fails to compile due to
[]
and0
not being validCanvasPattern
s.Actual behavior:
Successfully compiles, probably due to
CanvasPattern
being declared as an emptyinterface
, which is obviously implemented by all objects. At runtime, the style is solid black.The text was updated successfully, but these errors were encountered: