Closed MiniDigger closed 2 years ago
@MiniDigger Do you mean vue-docgen-web-types
? It uses vue-docgen-api
package to analyze the source code. Please file an issue in vue-styleguidist
repository. The problematic code is if (TS_TYPE_NAME_MAP[t.type]). The TS_TYPE_NAME_MAP
contains special rendering for union
instead of processing each item and displaying them.
Just found this project in hopes of improving auto completion for my lib, its looking not bad!
Sadly I use union types for many values and I am missing auto completion for those. e.g: I define my props using vue3's script setup and typescript:
the generator creates this attribute for "buttonType":
loosing all the context of my union :/