-
Notifications
You must be signed in to change notification settings - Fork 77
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
Bug: Add types to public events EventEmitter #2854
Comments
Thanks for bringing this up. We need to do an audit of our custom events as we will be removing any custom event payload that is not already on the component itself. For the cc @benelan |
It seems all events have types now. @geospatialem can you confirm? |
Installed and assigned for verification. |
Verified on the |
Many components are either missing or have incomplete event types which makes causes a headache with handling events in typescript.
For example, here is an excerpt from my code using the calcite-components-react package
You can see the return type on calciteInputInput is currently
any
, when it should have a specific type.This is because the EventEmitter has no type provided, so it auto-casts to
any
Actual Behavior
Current calciteInputInput definition:
Expected Behavior
Proposed definition:
I'd like to take this task on if it's something others think would be worth doing
The text was updated successfully, but these errors were encountered: