components icon indicating copy to clipboard operation
components copied to clipboard

How to have typescript inference with this?

Open MatthD opened this issue 3 years ago • 2 comments

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

MatthD avatar Jul 29 '22 13:07 MatthD

@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

wJoenn avatar Nov 09 '23 09:11 wJoenn