figma / plugin-typings

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

plugin-typings: Fix type discrepancies with documentation #89

Closed ymichael closed 2 years ago

ymichael commented 2 years ago

This PR can be reviewed commit by commit.

  1. The first commit moves the PluginAPI and relevant types into their own file (This lets us diff it easily with figma's internal typings which is used for our documentation).
  2. Subsequent commits are bug fixes
  3. Also added a test where we create a test folder that uses these types to verify that typings works as expected.