Hovering over a variable or function in VSCode is really helpful by showing its type. However, there are certain use-cases where I would like to see the full type definition of a variable and not just the type alias.
For example: UseState with full type
will allow me to see the full type of the variable campaign:
But I would really like to extrapolate that type definition and export it so other components can use it too. So when I change things to this:
and hover over the variable it only shows the type alias. How can I get TypeScript or VSCode to emit the full type definition for a type alias? Thanks!












Expandeverywhere don't you think ;) Playground