runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
502 stars 63 forks source link

Custom interfaces for ts/tsx #116

Closed alazurenko closed 4 years ago

alazurenko commented 4 years ago

Hello, Thank you for your effort on building this useful tool 👍

I have a question regarding name of the interface that is used during the analyze of ts files: Would be feasible to customize the name of an interface for analysis. For instance, HTMLElementTagNameMap to IntrinsicElements?

What do you think?

runem commented 4 years ago

Thanks, I'm happy you like it ☀️

Definitely! I might built a separate JSX-flavor for this, that can be activated via a flag (eg. --jsx). Would there be more JSX-declaration specific syntax to support? Eg. IntrinsicAttributes?

alazurenko commented 4 years ago

Thanks for the reply! I believe it would be beneficial to have them :)

runem commented 4 years ago

Version 1.0.0, which has just been published, supports IntrinsicElements and IntrinsicAttributes out of the box :tada: