-
Notifications
You must be signed in to change notification settings - Fork 441
Open
Description
Description
TypeScript definitions of many components are wrong.
Reproduce Steps
For example, in definition of Input
component, you write
onChange?(e?: React.SyntheticEvent<HTMLInputElement>): void
in the real world, the component pass the string (value of input) to the onChange
method, which should be
onChange?(value: string): void
Another case, emptyText
is not present in attributes of Table
components, which is present in your docs.
Solution
Hopes there will be a full check of all definition and fix in TS .d.ts file. Or I may bring a pull request to fix the issues I ran into (which might be not complete)
kHorozhanov
Metadata
Metadata
Assignees
Labels
No labels