variable / @typed/template

diffable

Creates the advanced node adapter used by local DOM reconciliation.

Package version
1.0.0-beta.13
Category
Range reconciliation
Since
1.0.0
Stability
internal-but-published

Import

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

Signatures

export declare const diffable: (document: Document) => (node: Node, operation: number) => Node;

Why

A Wire can participate in the same bounded diff as one Node while preserving every concrete node in its range.

Ownership and lifetime

The closure borrows the Document; operations move or remove only the represented range and acquire no Scope.

Examples

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

const adapt = diffable(document)

Other public imports

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

Source