Closed pbitkowski closed 2 years ago
is it about installing types? yarn add @types/react-notifications-component
The declarations are in the build folder, but for some reason the index.d.ts
had the imports referenced from src
instead of .
Watch out for the next release, will have this fixed.
@pbitkowski
Fixed in 3.2.0
Hi,
Your package looks great, kudos for building it! I would love to use it but when I import it I get TypeScript error:
I checked your index.d.ts and see:
Where there's no src directory
Also in package.json there's no "types" record that would indicate where to search types.
Repro: https://codesandbox.io/s/relaxed-saha-4sxqn?file=/src/App.tsx
I could help you with exporting types if you want :)