figma / plugin-typings

Typings for the Figma Plugin API
MIT License
195 stars 45 forks source link

Add ComponentSets to SceneNode and NodeType #11

Closed gabrielecirulli closed 3 years ago

gabrielecirulli commented 3 years ago

Looks like this was missed in the previous MR addressing variants (https://github.com/figma/plugin-typings/pull/10)

I ran into this while writing some code that acts on nodes based on their types. The type string for ComponentSets is not available.

This PR is based on a very shallow understanding of the typings file and the changes made by the previous PR, as such I might've missed something important. Feel free to point out any improvements I should make and I'll try to get those in!

rudi-c commented 3 years ago

You got it right!

gabrielecirulli commented 3 years ago

Awesome! Any chance to get this in a release?