intro.js
    Preparing search index...

    Type Alias Tags

    Tags: Readonly<Record<string, TagFunc<Element>>> & {
        [K in keyof HTMLElementTagNameMap]: TagFunc<HTMLElementTagNameMap[K]>
    }

    Represents a type for a collection of tag functions.

    This type includes:

    • A readonly record of string keys to TagFunc functions, enabling the creation of generic HTML elements.
    • Specific tag functions for each HTML element type as defined in HTMLElementTagNameMap, with the return type corresponding to the specific type of the HTML element (e.g., HTMLDivElement for 'div', HTMLAnchorElement for 'a').

    Usage of this type allows for type-safe creation of HTML elements with specific properties and child elements.