Skip to content
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

this.$props's type is broken #12122

Closed
07akioni opened this issue Oct 7, 2024 · 1 comment · Fixed by #12123
Closed

this.$props's type is broken #12122

07akioni opened this issue Oct 7, 2024 · 1 comment · Fixed by #12123

Comments

@07akioni
Copy link
Contributor

07akioni commented Oct 7, 2024

Vue version

3.5.11

Link to minimal reproduction

https://play.vuejs.org/#eNp9UdFKw0AQ/JXlEGyhtog+1VhQqaAPKtbHfSnpJr2a7B13l1oI+Xf3rjQtohI4bmd2jplMq+6sHW8bUlOV+dxpG2bIurbGBWhhRYVmejAyM3GADgpnajgXwfkNMvKPhUGLDGCdsX4K6Q5QGDOFRXCay6iIX4Tj2Y3i6UiecYPhQRDW2o/P0iN7wFFoHAOqR2NQJSFyN0TOJr1lGQLVtloGkgkgW1/O2hZqX0LXZROZEqrZNgG2F7VZUXWLSnhUMBEym5zo1UgFnxsudDneeMPyd5I5VLlE1RW5Vxu0YY+qz4lqWVXm6zlhwTWUwiXNmvLPX/CN30UM1ZsjT25LqHouLF1JYU/PFy+0k3tPivumku1/yHfypmqix/3afcMrsX2yl9w+paalmg8/3wVifwgVjR4rQiWNx5b/in60ezW+PjSkum+EiMiJ

Steps to reproduce

image

What is expected?

No & string

What is actually happening?

$props's type is intersected with string

System Info

No response

Any additional comments?

No response

@07akioni 07akioni changed the title $props type is broken this.$props type is broken Oct 7, 2024
@07akioni 07akioni changed the title this.$props type is broken this.$props's type is broken Oct 7, 2024
@07akioni
Copy link
Contributor Author

07akioni commented Oct 7, 2024

This can cause { ...this.$props } throws a type error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants