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

Check if TS Generic types should be used #317

Open
patric-eberle opened this issue May 23, 2023 · 0 comments
Open

Check if TS Generic types should be used #317

patric-eberle opened this issue May 23, 2023 · 0 comments
Labels
enhancement New feature or request vue-3 Will only be done for the vue-3 version

Comments

@patric-eberle
Copy link
Member

patric-eberle commented May 23, 2023

Some components allow to process unknown data (e.g. e-table and e-select). Currently, the expected type is linked to a static interface. It would make more sense to have a Generic here, that allows to specify the data type from outside of the component so that, when the data is emitted back up by event or slot, it's type matches the original one.

See https://javascript.plainenglish.io/typescript-generics-whats-with-the-angle-brackets-4e242c567269 for additional information.

@patric-eberle patric-eberle added enhancement New feature or request vue-3 Will only be done for the vue-3 version labels May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vue-3 Will only be done for the vue-3 version
Projects
None yet
Development

No branches or pull requests

1 participant