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
Hello @zhuscat ,
I am not sure how to change this behavior without a breaking change, which I try to avoid at all costs. Major versions are not cheap.
You should probably add a customization layer between your code and the library.
The rule could be: If it's a union and there is only known types format it like typescript else let the engine format it
I think volar and the vue-component-meta package, though a bit slower, would help you in this a lot.
vue-docgen-api version: 4.75.1
Here is my code for test:
The output is:
Is there a way I can get type description like
number | string
?The text was updated successfully, but these errors were encountered: