• Creates a new tag object.

    Parameters

    • tagName: string

      The name of the tag such as div.

    • namespace: string = ""

      The namespace of the tag such as http://www.w3.org/2000/svg.

    Returns ((virtualId?) => (<T>(...facts) => ((...children) => Readonly<{
        children: readonly Dom<T>[];
        descendantsCount: number;
        facts: FactsOrganization<T>;
        namespace: string;
        tagName: string;
        type: typeof tagSymbol;
        virtualId?: string;
    }>)))

    The new tag object.

      • (virtualId?): (<T>(...facts) => ((...children) => Readonly<{
            children: readonly Dom<T>[];
            descendantsCount: number;
            facts: FactsOrganization<T>;
            namespace: string;
            tagName: string;
            type: typeof tagSymbol;
            virtualId?: string;
        }>))
      • Parameters

        • Optional virtualId: string

        Returns (<T>(...facts) => ((...children) => Readonly<{
            children: readonly Dom<T>[];
            descendantsCount: number;
            facts: FactsOrganization<T>;
            namespace: string;
            tagName: string;
            type: typeof tagSymbol;
            virtualId?: string;
        }>))

          • <T>(...facts): ((...children) => Readonly<{
                children: readonly Dom<T>[];
                descendantsCount: number;
                facts: FactsOrganization<T>;
                namespace: string;
                tagName: string;
                type: typeof tagSymbol;
                virtualId?: string;
            }>)
          • Type Parameters

            • T

            Parameters

            • Rest ...facts: Fact<T>[]

            Returns ((...children) => Readonly<{
                children: readonly Dom<T>[];
                descendantsCount: number;
                facts: FactsOrganization<T>;
                namespace: string;
                tagName: string;
                type: typeof tagSymbol;
                virtualId?: string;
            }>)

              • (...children): Readonly<{
                    children: readonly Dom<T>[];
                    descendantsCount: number;
                    facts: FactsOrganization<T>;
                    namespace: string;
                    tagName: string;
                    type: typeof tagSymbol;
                    virtualId?: string;
                }>
              • Parameters

                • Rest ...children: Dom<T>[]

                Returns Readonly<{
                    children: readonly Dom<T>[];
                    descendantsCount: number;
                    facts: FactsOrganization<T>;
                    namespace: string;
                    tagName: string;
                    type: typeof tagSymbol;
                    virtualId?: string;
                }>

Generated using TypeDoc