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

Wrong $ref returning value type without initial value #6820

Closed
sxzz opened this issue Oct 5, 2022 · 0 comments · Fixed by #6821
Closed

Wrong $ref returning value type without initial value #6820

sxzz opened this issue Oct 5, 2022 · 0 comments · Fixed by #6821
Labels
feat: types 🐞 bug Something isn't working

Comments

@sxzz
Copy link
Member

sxzz commented Oct 5, 2022

Vue version

3.2.40

Link to minimal reproduction

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzlApgMzgXzmqERwDkAbgK4qECwAUKJLInACSoba75FkoD0IAhgGM8AZyrUaPHnAB20AQBtk6GoIgyR8NBAhwAvMrQAeTVGAyA5gD4AFAEpJ0uM7iAwakDwf3ABK6EzDOWcAA+cKQyACbo5ijhVjSq6iIQCigAdAoQFjbaEKnE-ArkqTAQAMr+5ll2DtRSLvX1Hs4A8gBGAFYogvDAInCQIiLArQoAnkRhkWjR4YSpNgBMAKwAzAs18bXSqEIwwMTAMOP+-BraUCAJGvCt-FD6zKx+Adb2jg1NPrv7KABqd8B+CMUM9KlY4ABacGbNQaZJpDJZW5QYplCqWew1OoND6eQAy5M4AHK6FBQPBQEQAGjgrVINzucF6oQiURkMTgp3CcAA7sAFEoUCBDhyZHBSeTGaKoGE9iAUO8cfUAKIADzAXXgpzFZOgAC44G1Ot1GX0BkMRuNCJNWTE5otVusaEA

Steps to reproduce

Open the reproduction

What is expected?

const bar = $ref<string>()
bar is ReactiveVariable<string> | undefined

What is actually happening?

const bar = $ref<string>()
bar is ReactiveVariable<string>

System Info

N/A

Any additional comments?

No response

sxzz added a commit to sxzz/vue-core that referenced this issue Oct 5, 2022
@posva posva added 🐞 bug Something isn't working feat: types labels Oct 6, 2022
sxzz added a commit to sxzz/vue-core that referenced this issue Oct 27, 2022
sxzz added a commit to sxzz/vue-core that referenced this issue Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: types 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants