function / @typed/template/Wire

isWire

Checks if a rendered node is a Wire.

Package version
1.0.0-beta.13
Category
Range recognition
Since
1.0.0

Import

import { isWire } from "@typed/template/Wire";

Signatures

export declare function isWire(node: Rendered): node is Wire;

Why

Wire ranges use a deliberate node-type sentinel rather than an extra wrapper.

Ownership and lifetime

The guard borrows the value and changes no DOM state.

Examples

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

const result = isWire(document.createDocumentFragment())

Other public imports

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

Source