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

How to have typescript inference with this? #251

Open
MatthD opened this issue Jul 29, 2022 · 1 comment
Open

How to have typescript inference with this? #251

MatthD opened this issue Jul 29, 2022 · 1 comment

Comments

@MatthD
Copy link

MatthD commented Jul 29, 2022

Describe the bug
On Nuxt V2.15.8/vue2.7
With a components: true I can auto-load any component in the folder
BUT how should I deal with typescript ? I don't have props suggestion inside the template now (any):/

Expected behavior
Have a way to get all type from component auto imported

Screenshots
Capture d’écran 2022-07-29 à 15 27 26

@wJoenn
Copy link

wJoenn commented Nov 9, 2023

@danielroe any idea on this please 🙏
I'm working on a Nuxt 2.13 project and am trying to auto-import some components but having no type checking at all is a problem. I don't get any error if I'm not using a required prop or if I'm using a prop but inputing a value with an incorrect type

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

2 participants