when set tsconfig - vueCompilerOptions.target = 3 and compilerOptions.strict = false , use Partial in defineProps, $props lose type #4839
Labels
duplicate
This issue or pull request already exists
Vue - Official extension or vue-tsc version
2.0.21
VSCode version
1.92.2 (Universal)
Vue version
3.5.4
TypeScript version
5.4.0
System Info
System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Memory: 159.14 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.17.0 - /usr/local/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.8.2 - /usr/local/bin/npm pnpm: 7.33.7 - ~/Library/pnpm/pnpm Browsers: Chrome: 128.0.6613.121 Safari: 16.5.1
package.json dependencies
Steps to reproduce
pnpm create vue@latest
use typescript
set tsconfig - vueCompilerOptions.target = 3 and compilerOptions.strict = false
What is expected?
groupDetail should be IGroupDetail not unknown
What is actually happening?
groupDetail type get unknown
Link to minimal reproduction
https://github.com/Kanade-Lu/vue-bue-report
Any additional comments?
set vueCompilerOptions.target = auto or strict = true will get right type
The text was updated successfully, but these errors were encountered: