Using Volar internals to get codegen metadata #597
-
I'm wondering if it's theoretically possible to use Volar internal in order to parse Vue 3 syntax with typescript into a structured component metadata like prop types, slots and general comments. It'll be especially useful considering vue-styleguidist internal parsing tools doesn't support the new syntax and Storybook also relies on these internals. See vue-styleguidist/vue-styleguidist#997 for further reference and the current state and plans of supporting the new syntax. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think TypeScript TypeChecker API can do it, I planed to explore it when implement component preview feature. |
Beta Was this translation helpful? Give feedback.
-
It's been a long time since this request, but it's here now: https://github.com/johnsoncodehk/volar/tree/master/packages/vue-component-meta |
Beta Was this translation helpful? Give feedback.
I think TypeScript TypeChecker API can do it, I planed to explore it when implement component preview feature.