flickr / flickr-sdk

Almost certainly the best Flickr API client in the world for node and the browser
https://www.flickr.com/services/api
MIT License
131 stars 29 forks source link

7.0.0-beta.2: issue finding typescript types #164

Closed JClackett closed 10 months ago

JClackett commented 11 months ago

TS is having some issues when trying to location the TS definitions, if I change your package.json file's exports field to this, it works:

  "exports": {
    ".": {
      "import": { "default": "./dist/index.mjs", "types": "./dist/index.d.ts" },
      "require": { "default": "./dist/index.cjs", "types": "./dist/index.d.ts" }
    },
    "./package.json": "./package.json"
  },
jeremyruppel commented 10 months ago

Thanks! Which version of the SDK are you using?

JClackett commented 10 months ago

7.0.0-beta.2

JClackett commented 10 months ago

Same thing for beta.4

jeremyruppel commented 10 months ago

Your fix is in beta.6. Let me know if it works for you!

JClackett commented 10 months ago

Looks good! thanks :)