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

Add TypeScript typings #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add TypeScript typings #27

wants to merge 1 commit into from

Conversation

pschyma
Copy link

@pschyma pschyma commented Jun 9, 2019

This PR adds typings to allow for an easier integration in TypeScript based projects.

All types are extracted from the source files and the documentation. Here the values found in the source code take precedence. For example the type of the changeRating handler is ((rating, name?) => void) | null with a default of null instead of () => {} like stated in the documentation.

This also fixes #10 in TypeScript projects, because I added the corresponding property to the component, since the feature is already implemented but the propTypes lack the correspondig property whilst its default is set to Star.

@ergofriend
Copy link

Pls create a new npm package for typescript :)

@blimpmason
Copy link

When will this be merged?

@mayinghan
Copy link

can this pr get merged?

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.

Allow "Type Of Widget" as parameter
4 participants