You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a tree-like structure which has a recursive component. An event can be triggered and will bubble up until the component via successive emit calls.
In the example below, the argument of @update:modelValue should be automatically inferred as number. Volar, however, won't infer it and simply apply any to it, generating a TypeScript error. In the Vue application, there is no error at all – it renders correctly. So, it's a Volar issue.
I'm writing a tree-like structure which has a recursive component. An event can be triggered and will bubble up until the component via successive
emit
calls.In the example below, the argument of
@update:modelValue
should be automatically inferred asnumber
. Volar, however, won't infer it and simply applyany
to it, generating a TypeScript error. In the Vue application, there is no error at all – it renders correctly. So, it's a Volar issue.Minimal reproducible code:
Screenshot:
The text was updated successfully, but these errors were encountered: