jemgold / figma-js

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

add params `version` and `geometry` to GET:file #8

Closed g-a-v-i-n closed 6 years ago

g-a-v-i-n commented 6 years ago
jemgold commented 6 years ago

rad, thanks! thoughts on making params optional so it doesn't break existing uses?

readonly file: (
  fileId: string,
  params?: FileParams
) => AxiosPromise<Figma.FileResponse>
g-a-v-i-n commented 6 years ago

Oh, that should definitely be implemented. First time using TS over here.

jemgold commented 6 years ago

I can merge and fix it before publishing :) Also going to add types for the things that get added when you use geometry