-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use Partial in defineProps, $props lose type #11733
Comments
This seems to only happen in the playground; I can't reproduce this locally in VSCode either. Did you try updating the |
and my vscode 版本: 1.92.1 (Universal) |
Also, could you please provide your |
Sorry for the late reply {
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"./components.d.ts",
"./auto-imports.d.ts"
],
"typeAcquisition": { "include": ["jest"] },
"exclude": ["node_modules", "./www", "./src/plugins"],
"vueCompilerOptions": {
"target": 3
},
"compilerOptions": {
"outDir": "./www",
"types": [
"node",
"lodash",
"jest",
"vite/client",
"element-plus/global",
"@lx-frontend/multi-map/types",
"vue-component-type-helpers"
],
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"strict": false,
"jsx": "preserve",
"jsxFactory": "h",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"module": "NodeNext",
"target": "esnext",
"downlevelIteration": true,
"moduleResolution": "NodeNext",
"noImplicitAny": false,
"skipLibCheck": true,
"noImplicitThis": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleDetection": "auto",
"lib": ["dom", "es2015", "es2017", "es2015.promise"],
"sourceMap": true,
"pretty": true
}
}
|
It looks like this error is related to the
Hey @so1ve, could you please take a look at this? |
I can't reproduce this with any of the combinations below:
|
Vue version
3.4.38
Link to minimal reproduction
https://play.vuejs.org/#eNqFUktu2zAQvcqAmySAIS3SReHKBvoJinTRGmmXBAJCGilMKJIgR7YBQTfokXqnXqFDOo5VIB+uODPvzbz5jOKj98V2QLEUVayD9gQRafBglO1WUlCUYi2t7r0LBCMEbBdA7gbbCBO0wfVwxvQzaRlkCUOraoTrr8EN/guS0gZGaYFfHVARNreKlhApaNt9kHaStnY2EvjgfIQVNNhqi5tkVY/E7pRrCRsVSCtTzSuwvml9fpEklCUc8o1zGitdPYo+z4UugIGfXd+jJaA7HZnV4N8/v+ckbYGw94ZVw04bA4N9sG5nIRWqysO0uDYbRxxbAFWjt2uA8T8Jxal9mKaqTJjc3gmdlRVvcqpyVk0seEPccau74j46y2vMU5Oidr3XBsMPT5onIsXyuAgplDFu9y37KAy4OPrrO6wfnvHfx33ySbEJGDFsUYqnGKnQIR3CVz+/457/T8HeNYNh9CvBG4zODEnjAfZpsA3LnuGy2ut8gHw0v+LVntDGY1NJaEJOGS8FHyMv9sXWT3Ivi3eZx8fDU7zdYkg5eYAcKC7fi+kfIUcQtw==
Steps to reproduce
use Partial<> and without use toRefs.
What is expected?
groupDetail type should be Partial
What is actually happening?
groupDetail type is unknown
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: