Skip to content

class MyClass extends HTMLElement is required #273

@woldtwerk

Description

@woldtwerk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions