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
Typescript (currently) doesn't look any further than the direct decendants of an object to discriminate a union. (Click here for a more through explanation.)
As a consequence of this when the discriminating factor is a Ref (which happens very commonly) the discriminated union doesn't work.
The above mentioned issue is open since 2017 and this is still the case. In light of this fact I would like to ask if it would be possible to implement a vue specific feature in volar where it would look inside of direct decendant Refs along with direct decendants for a discriminating factor.
The text was updated successfully, but these errors were encountered:
Why this doesn't work?
Typescript (currently) doesn't look any further than the direct decendants of an object to discriminate a union. (Click here for a more through explanation.)
As a consequence of this when the discriminating factor is a Ref (which happens very commonly) the discriminated union doesn't work.
The above mentioned issue is open since 2017 and this is still the case. In light of this fact I would like to ask if it would be possible to implement a vue specific feature in volar where it would look inside of direct decendant Refs along with direct decendants for a discriminating factor.
The text was updated successfully, but these errors were encountered: