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
🐞 bug Something isn't working scope: types

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

@posva posva added 🐞 bug Something isn't working scope: types labels Oct 6, 2022
chrislone pushed a commit to chrislone/core that referenced this issue Feb 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: types
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants