konva
konva copied to clipboard
TS2339: Property 'fillStyle' does not exist on type 'Context'.
Trying konva with typescript on nodejs environment. I get this error from typescript
TS2339: Property 'fillStyle' does not exist on type 'Context'.
Checking Context.d.ts I see that indeed there's no fillStyle property.
Where exactly do you have this error? On what code usage?
in a typescript project, when I try to create a custom share using Konva.Shape like in this example: https://konvajs.org/docs/shapes/Custom.html
sceneFunc: function (context, shape) {
context.fillStyle // this is marked with that error
}
Do you want to create a Pull Request with the fix?