figma / plugin-typings

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

RunEvent arg disappeared from figma.on('eventName',(event:RunEvent) =>{}) callback.. 🤔 #53

Closed turbobabr closed 3 years ago

turbobabr commented 3 years ago

Just curious, what was the reason of removing the event argument from the callback function? https://github.com/figma/plugin-typings/commit/5604eefdbdf6671937bf65e496251644c168893f#diff-7aa4473ede4abd9ec099e87fec67fd57afafaf39e05d493ab4533acc38547eb8L35-L37

The official documentation still show the old signature: image

How do we suppose to check command identifier and params coming from events?

minigolf2000 commented 3 years ago

Ah nice catch, this is due to a bad merge conflict! We will add it back quickly in https://github.com/figma/plugin-typings/pull/54

turbobabr commented 3 years ago

Phew... thank you very much! 🙏

minigolf2000 commented 3 years ago

This is fixed now in the latest tag 1.32.0, thanks for the bug report!