figma-api icon indicating copy to clipboard operation
figma-api copied to clipboard

Figma REST API implementation with TypeScript, Promises & ES6

Results 19 figma-api issues
Sort by recently updated
recently updated
newest added

Hello! I was working with this library, and it seems like the "document" that we return from `api.getFileNodes` doesn't reflect the actual data returned: ```ts export interface GetFileNodesResult { name:...

https://www.figma.com/developers/api#variables The new "Variables" feature born in Figma, can we add it to this really usefull package ?

Noticed that some types are out of date, we've done some `ts-ignore` workarounds on our project which isn't ideal. Figured i'd update here. Also, solves #59 Includes `Component` and `ComponentSet`...

The API receives componentSets, but the type is not defined so it shows as an error in typescript.

Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d 3.1.1 55dda29 fix: treat nocase:true as always having magic 5e1fb8d 3.1.0 f8145c5 Add 'allowWindowsEscape' option 570e8b1...

dependencies

Hi, @didoo. I've checked docs and updated some types.

Hi, @didoo. I've added Section (https://help.figma.com/hc/en-us/articles/9771500257687) type.

According to the [Figma REST API documentation](https://www.figma.com/developers/api#get-images-endpoint), the `scale` and `format` query params are optional for the images endpoint. This updates the `getImageApi` function's types to reflect this.

`GetFileResult` type is outdated. Adding some of the missing fields. source: https://www.figma.com/developers/api#get-files-endpoint