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).
Subsequent commits are bug fixes
Also added a test where we create a test folder that uses these types to verify that typings works as expected.
This PR can be reviewed commit by commit.
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).