You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening this issue so we can add typescript support for the reference object methods such as this.$refs.myObject.getNode() and it would ideally return a Node type from the Konva library. Here's my current workaround for how I'm achieving this:
I would love to see this added too, it's a major omission in vue-konva. Right now we can't really use TypeScript when our code gets a ref to the v-stage, for instance:
Opening this issue so we can add typescript support for the reference object methods such as
this.$refs.myObject.getNode()
and it would ideally return aNode
type from the Konva library. Here's my current workaround for how I'm achieving this:Maybe it can be a generic so we'd define the type as:
VueKonvaType<Layer>
,VueKonvaType<Stage>
, etc?I'm new to defining type declarations but can help make this happen.
Thanks,
Joe
The text was updated successfully, but these errors were encountered: