Skip to content
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

Change typing of value parameter of handleSetEditData #531

Open
realtalin opened this issue Nov 12, 2024 · 0 comments
Open

Change typing of value parameter of handleSetEditData #531

realtalin opened this issue Nov 12, 2024 · 0 comments

Comments

@realtalin
Copy link
Collaborator

Currently, any function you pass as the handleSetEditData parameter for an editing component needs to be typed to handle all types that any function passed as that parameter can handle. This leads to silliness like having to type handleCoordinateChange (function passed as parameter for the coordinate textfields) to accept values of type Date as parameters. This should be fixable using generics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant