runem / web-component-analyzer

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

class MyClass extends HTMLElement is required #273

Open woldtwerk opened 1 year ago

woldtwerk commented 1 year ago

Usage of:

class TextField extends HTMLElement

is currently required.

I think this shouldn't be required. Using @element text-field or

declare global {
    interface HTMLElementTagNameMap {
        "text-field": TextField;
    }
}

should be sufficient.

This would allow support for libraries like vue and svelte.

Is there a reason for this behavior?