BridgeCollections interface

Namespace @runic-artifex/views/generated · @runic-artifex/views 0.7.0-preview.5

interface BridgeCollections

The keyed collections of one generated client, passed to connectView as collections. A View without keyed collections does not bundle this code.

Methods

validate

validate(state: unknown): void;

Throws when a decoded state has a missing collection or invalid keys.

apply

apply(state: unknown, changes: unknown): unknown;

Applies a collection change frame to a decoded state. Throws for an unusable frame.

applyWire

applyWire(wire: unknown, changes: readonly unknown[]): Record<string, unknown>;

Applies a frame that apply accepted to the wire state.