Conversation
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PaulHax
left a comment
There was a problem hiding this comment.
We lost some type safety with the MakeToolDefaults extends (...args: any) => any change earlier. Before, ToolDefaults and label properties needed to exist in the Ruler or Rectangle type.
Would be nice if we got a Typescript error if default label properties did not exist on tool. Then a object of type Label<Tool> could not have arbitrary properties.
|
I'm not sure if we've lost type safety. We have I find If there's something design-wise that I missed, do let me know. |
PaulHax
left a comment
There was a problem hiding this comment.
Ah, I see, thanks for the learning.
More label fixes
Fixes the types passed into useLabels.