-
Notifications
You must be signed in to change notification settings - Fork 24
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 type definitions #318
base: master
Are you sure you want to change the base?
Conversation
): ( | ||
component: ( | ||
props: P & { | ||
fieldProps: React.InputHTMLAttributes<HTMLInputElement> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React.HTMLAttributes
rather than React.InputHTMLAttributes<HTMLInputElement>
might be a better choice, I thought about adding all variants but that'd require type assertion.
What do you think about modularizing type definitions, @Ell10t? |
No objections here, if it makes it more manageable it's probably not a bad idea. |
@Ell10t I will try to break it down then. Apart from that, the only crucial thing that is left is a type definition of that |
Alright, if I get time I'll have a look into the generics as well. |
Introduces a basic typings in TypeScript.
Subjected to merge after a prior discussion.