Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definition file for prop types #34

Closed
wants to merge 6 commits into from

Conversation

thib92
Copy link

@thib92 thib92 commented Aug 13, 2018

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.

@thib92 thib92 mentioned this pull request Aug 13, 2018
@adesnmi
Copy link

adesnmi commented Dec 18, 2018

Any updates on this @kulakowka?

@thib92 thib92 closed this Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support TypeScript?
2 participants