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)
Description
TypeScript definitions of many components are wrong.
Reproduce Steps
For example, in definition of
Inputcomponent, you writein the real world, the component pass the string (value of input) to the
onChangemethod, which should beAnother case,
emptyTextis not present in attributes ofTablecomponents, 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)