i-like-robots / react-tag-autocomplete

⚛️ A simple, accessible, tagging component ready to drop into your React projects (new repo)
https://i-like-robots.github.io/react-tag-autocomplete/
ISC License
178 stars 12 forks source link

Consider strict TS #5

Closed genox closed 2 years ago

genox commented 2 years ago

Hi,

While using this component I get numerous TS errors during builds. They seem to be related to the fact that this is written with strict mode disabled in TS (https://kovalevski.net/what-is-strict-mode-in-typescript-and-why-and-when-you-should-use-it/).

Consider writing the component with strict mode enabled.

All the best, Oliver

i-like-robots commented 2 years ago

I've published v7.0.0-beta.6 which provides a generated type declaration file instead of relying on the source code for type information. Now that the source code is no longer published this should resolve this issue.

I've also fixed all of the noImplicitAny warnings and errors in the source code to help move in a stricter direction.