Fixes #32.
In this PR I created a Typescript definition file, changed the scripts to take it into account, and fixed a few ESLint problems.
Would love to have feedback on this.
I used the PropTypes to infer the TS types. If the PropTypes are not up to date or are wrong, the TS types will be wrong too.
By the way, I think it would be awesome to convert the project to Typescript, so that the definition file is generated automatically, and so that the PropTypes are actually properly checked at compile time, assuring a better quality code. Would love to hear your opinion on this @kulakowka.
Fixes #32. In this PR I created a Typescript definition file, changed the scripts to take it into account, and fixed a few ESLint problems.
Would love to have feedback on this. I used the
PropTypes
to infer the TS types. If thePropTypes
are not up to date or are wrong, the TS types will be wrong too.By the way, I think it would be awesome to convert the project to Typescript, so that the definition file is generated automatically, and so that the PropTypes are actually properly checked at compile time, assuring a better quality code. Would love to hear your opinion on this @kulakowka.