function / @typed/template

isNode

Checks if a rendered node is a standard DOM Node.

Package version
1.0.0-beta.7
Category
Native node recognition
Since
1.0.0

Import

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

Signatures

export declare function isNode(node: Rendered): node is Node;

Why

This excludes arrays and fragment-like Wire values before native node logic.

Ownership and lifetime

The check borrows the candidate only long enough to read its native nodeType; it neither inserts nor retains the Node.

Examples

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

const result = isNode(document.createTextNode("hello"))

Other public imports

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

Source