function / @typed/template/Wire

isDocumentFragment

Checks if a rendered node is a DocumentFragment.

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

Import

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

Signatures

export declare function isDocumentFragment(node: Rendered): node is DocumentFragment;

Why

Fragment output is distinguished from persistent Wire ranges before insertion.

Ownership and lifetime

The check borrows the native DocumentFragment; it does not insert its children or consume the fragment.

Examples

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

const result = isDocumentFragment(document.createDocumentFragment())

Other public imports

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

Source