jemgold / figma-js

Little wrapper (+ types) for the Figma API
https://jongold.github.io/figma-js/
MIT License
490 stars 47 forks source link

fix style and component types #35

Closed jonrimmer closed 4 years ago

jonrimmer commented 4 years ago

Bug fix for #34

The type definitions for the library item endpoints do not match what the API expects/returns: https://www.figma.com/developers/api#library-items-endpoints

The types should now be correct.

The original bug was for the style endpoints, but I noticed the component endpoints had the same problems so I corrected them also, as well as removing the unsupported pagination parameters from the file style and component client methods.