Enable JSDoc intellisense on properties in unioned types?

38 Views Asked by At

If I write doc comments on a property in a TypeScript type, they show up when hovering the property.

enter image description here

If I make the type a more complex union type, the doc comments no longer appear.

enter image description here

I can get the doc comments by referencing the property on the type.

enter image description here

Is there a way to enable doc comments for the properties on a more complex union type?

0

There are 0 best solutions below