Skip to content

Updated typescript type definitions on DefinitelyTyped #294

Open
@N0NamedGuy

Description

@N0NamedGuy

Congratulations on this component. It is pretty nice component, that I have been using for some 3 years already (since v2.2.0), in a production context.

Now, in the project I am working on, we are migrating towards typescript. With the breaking changes introduce since, namely the new props, and the change of moveToLeft to moveToAvailable and such, the types in DefinitelyTyped have not been updated.

So, I took it up myself to update them, the best I could. Here is the PR DefinitelyTyped/DefinitelyTyped#70899

If you do not wish to include the typescript definitions with your project, that is fine, and I will understand your decision (not everyone needs to like typescript in the javascript world...). However, if you do wish to ship the typescript definitions with your project, there they are.

I would appreciate any feedback you (or anyone else that is interested in this project) to take a look on the new type definitions.

PS: While updating the type definitions, I noticed that the onChange callback prop also receives a third parameter with all the component props. This is not documented. Was this intentional, or just missed?

PPS: I could not find any other easier way to reach you @jakezatecky ... So, I am sorry if this comes as spam to you...

Enjoy the rest of your day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions