Options api type issue
If i set some props to App.vue, the type of Comp.vue in App.vue's template is any, comment out the prop related code the type of the Comp.vue is fine
Not sure if this is related to vue core type
Indeed this is a vue core type issue
Indeed this is a vue core type issue
I'll make a copy issue there later
https://github.com/vuejs/core/issues/9296
Oh sorry I didn't find out that you have already created that issue
TS Language Server behaves differently in js and ts:
In .js files, it seens like unknown or void will be automatically converted to any, and it dosen't match the function overloading type of defineComponent
workaround:
pnpm patch "@vue/runtime-core" then add some new function overloading types for defineComponent to handle this situation
TS Language Serverperforms not the same between .ts and .js files:
yeah, as @so1ve mentioned in https://github.com/vuejs/language-tools/issues/3690#issuecomment-1782170958
TS Language Serverperforms not the same between .ts and .js files:yeah, as @so1ve mentioned in #3690 (comment)
I know, just add some detail and workaround for this issue