jemgold / figma-js

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

feature: return also client #9

Closed tujoworker closed 5 years ago

tujoworker commented 6 years ago

Example usage

  const { data } = await Figma.Client({
    personalAccessToken: token
  }).client.get(`files/${key}/versions`)
tujoworker commented 5 years ago

@jongold What do You think about this little, but handy return of the client?

jemgold commented 5 years ago

Oops, totally missed this. Sure, seems good to me - thank you!

tujoworker commented 5 years ago

Hi @jongold - Thank You so much for lookin into this and approving the PR. But unfortunately it's not in the latest version, right? https://unpkg.com/figma-js@1.6.0/build/main/index.js - is there sameting I can investigate to get this released?