yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

Patch package.json to fix TS type exports. #150

Closed AaronJY closed 1 year ago

AaronJY commented 1 year ago

I was running into this error (https://github.com/yaodingyd/react-flickity-component/issues/149) reported by @minhquan1313, which relates to TS being unable to find the declaration types for the library.

This PR fixes this by specifically pointing to the types file "./src/index.d.ts"

Tested by altering the package.json in node_modules with my proposed fix, and the types are pulled in correctly now :)

yaodingyd commented 1 year ago

thanks!