Open Indeedornot opened 4 months ago
After diving deeper into this issue it appears to be a connection of problems between two repositories Language Tools And this one There would be need to add a resolver for defineComponent for types including the resolveTypes and vModel
Should this issue be moved to Language Tools repository?
🐛 Bug description
I'll use this issue to report multiple issues I have found while working with the plugin
Lack of typing for
vModel
resolveTypes
does not generate typed emitsconst LogInput = defineComponent( (_, { emit }: SetupContext<{ log: (msg: string) => void }>// : { emit: { log: (msg: string) => void } } - no difference in typing ) => { const input = ref('') const log = (msg: string) => emit('log', msg); return () => (
} // #Works with such declaration: // { // emits: { // log: (msg: string) => true // } // } // #Does not work with runtime and resolveTypes )
📝 Steps to reproduce
Create a new tsx repository using create-vue
Reproduction Link: Reproduction
🏞 Desired result
🚑 Other information