figma / plugin-typings

Typings for the Figma Plugin API
MIT License
190 stars 44 forks source link

Duplicate createVariable #288

Closed andreincu closed 4 months ago

andreincu commented 4 months ago

At first glance, I thought that createVariable is duplicated. However, after a closer look, there is an issue with the definition.

According to docs, the second one should be the valid one (the one with collection property).

image
efrankenbergfigma commented 4 months ago

Hi! Thanks for raising this concern. We actually do maintain typings for both of these versions of createVariable, because if users do not migrate their plugins to be Dynamic Page Loading compatible, they can still use the deprecated method that takes in a collectionId. There is additional information documenting this release here!