I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
The types for the GET file styles endpoint response say it returns an object with a root array property of styles containing style definitions, extending an object with a meta property with a key-value map of style definitions :
The style definition object is not keyed within the meta property, it is the meta property.
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository [ ] question about how to use this project
Summary
The types for the
GET file styles
endpoint response say it returns an object with a root array property ofstyles
containing style definitions, extending an object with ameta
property with a key-value map of style definitions :This does not match the API:
https://www.figma.com/developers/api#get-file-styles-endpoint
The example response is:
styles
property containing style metadata.meta
property has a single property,styles
which maps to an array of style metadata.The
GET style
endpoint is typed to return theStyleResponse
object above. This does not match the API:https://www.figma.com/developers/api#get-style-endpoint
The example response is:
The style definition object is not keyed within the
meta
property, it is the meta property.