language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Vue2 <template> get "any" type when using custom component

Open Jibacat opened this issue 8 months ago • 7 comments

Vue - Official extension or vue-tsc version

2.0.24

VSCode version

1.90.2

Vue version

2.7.10

TypeScript version

5.4.5

System Info

System:
    OS: macOS 12.7.3
    CPU: (8) x64 Apple M2
    Memory: 26.81 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.21.3 - /usr/local/bin/node
    npm: 6.14.18 - /usr/local/bin/npm
  Browsers:
    Chrome: 126.0.6478.127
    Safari: 15.6.1

Steps to reproduce

image image image

I get "any" type on custom component "HelloWorld" in template.

How can I get exact type instead of "any"?

Link to minimal reproduction

No response

Any additional comments?

No response

Jibacat avatar Jul 01 '24 09:07 Jibacat