function / @typed/template

isHtmlElement

Checks if a rendered node is an HTMLElement.

Package version
1.0.0-beta.13
Category
Native element recognition
Since
1.0.0

Import

import { isHtmlElement } from "@typed/template";

Signatures

export declare function isHtmlElement(node: Rendered): node is HTMLElement;

Why

HTML-specific behavior can be selected without obscuring native DOM identity.

Ownership and lifetime

The check reads the candidate’s native HTML identity without cloning, inserting, or retaining it.

Examples

import { isHtmlElement } from "@typed/template/Wire"

const result = isHtmlElement(document.createElement("dialog"))

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source