canvas
canvas copied to clipboard
FillType usage problem: Ambient const enums are not allowed when the '--isolatedModules' flag is provided
I was trying to use this library in my NextJS app. And I have this complex SVG path that renders correctly only with this method in README.
The problem is when I try to use the setFillType method on Path2D, TS complains Ambient const enums are not allowed when the '--isolatedModules' flag is provided ts(2748). And I have to use 1 instead of FillType.EvenOdd to solve it.
Is there a possible fix to this?