-
Notifications
You must be signed in to change notification settings - Fork 268
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 bindings #209
Comments
I've thought about this and IMO (and I think you'd agree) that having I'd be open for a PR on this if someone wants to do it with the proper types. |
@allcontributors[bot] please add @statico for ideas |
I've put up a pull request to add @statico! 🎉 |
Adds @statico as a contributor for ideas. This was requested by mrchief [in this comment](#209 (comment))
Adds @statico as a contributor for ideas. This was requested by mrchief [in this comment](#209 (comment))
Adds TypeScript-definitions I also noticed that onAction is not correctly implemented. Currently sends a { action: string, id: string }. There is code in index.js which tries to fetch the node. But it does not seem be working. It expects two parameters but receives the object described above in the first parameter. ![bild](https://user-images.githubusercontent.com/17863113/54728331-8d972980-4b7d-11e9-9490-a3bd6b08481f.png) Changed the examples/stories to get the node id at least. Also changed in readme where onAction should be applied. Fixes #209 - [X] New feature
Adds TypeScript-definitions I also noticed that onAction is not correctly implemented. Currently sends a { action: string, id: string }. There is code in index.js which tries to fetch the node. But it does not seem be working. It expects two parameters but receives the object described above in the first parameter. ![bild](https://user-images.githubusercontent.com/17863113/54728331-8d972980-4b7d-11e9-9490-a3bd6b08481f.png) Changed the examples/stories to get the node id at least. Also changed in readme where onAction should be applied. Fixes #209 - [X] New feature
🎉 This issue has been resolved in version 1.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is a great library. However, it would be even better if it included TypeScript bindings, or at least third-party bindings via https://github.com/DefinitelyTyped/DefinitelyTyped .
For now I've created a
types/react-dropdown-tree-select.d.ts
file which contains the following:The text was updated successfully, but these errors were encountered: