Closed jasp402 closed 4 years ago
Hi there,
I've just tested it here: https://stackblitz.com/edit/typescript-uqpiu9
And haven't been able to reproduce your issue. I do ship the type definition file (.d.ts) with the package so it should work with typescript. Maybe an issue with your code editor with caching/indexing of the nodes_modules ?
Also, maybe shipping the .d.ts
within the module isn't the smartest option (since if you don't use TypeScript you don't need it and it take space into the package). I will read some advise about that and keep this issue open to maybe refactor the way we include the types to the package.
How can I use it with TypeScript and reactjs When I install it, it still doesn't recognize it.
It is usually solved using: