Skip to content
Discussion options

You must be logged in to vote

I thought about that and while the error does indeed disappear, it's but only because bar is actually not of type FooType in this case. So it becomes an issue when e.g. passing bar to a function that expects a parameter of type FooType: Check here.

I guess the difference is because Vue is unwrapping refs when resolving them. Also see https://github.com/orgs/vuejs/discussions/9564#discussioncomment-7518938.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JammingBen
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants