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

Narrow Vue component type #141

Open
FloEdelmann opened this issue Sep 12, 2022 · 0 comments
Open

Narrow Vue component type #141

FloEdelmann opened this issue Sep 12, 2022 · 0 comments
Labels
enhancement New feature or request hacktoberfest Good for Hacktoberfest participants help wanted Extra attention is needed

Comments

@FloEdelmann
Copy link
Owner

The return type of the vueComponentProp() function is object | string. It has to be so broad to allow Vue 2 and Vue 3 component options or instances. If you are able to narrow the type without pulling in heavy dependencies, please comment here or submit a pull request!

See https://github.com/FloEdelmann/vue-ts-types/blob/main/README.md#vuecomponentpropvalidator-validator.

@FloEdelmann FloEdelmann added enhancement New feature or request hacktoberfest Good for Hacktoberfest participants help wanted Extra attention is needed labels Sep 12, 2022
@FloEdelmann FloEdelmann pinned this issue Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Good for Hacktoberfest participants help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant