Skip to content

Issues about TypeScript definition #697

@iplus26

Description

@iplus26

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions