interface BridgeCollections The keyed collections and text fields of one generated client, passed to connectView as collections. Its members are internal to the runtime.
Methods
kind
kind(field: string): "collection" | "text" | undefined; Whether field is a keyed collection or a text field.
validate
validate(field: string, value: unknown): void; Throws when a decoded value of field is not a valid collection (rows with nonempty, unique keys) or text. An absent (undefined) value is a development-only member that a publish left out.
apply
apply(field: string, current: unknown, change: Readonly<Record<string, unknown>>, owned: boolean): unknown; Applies one indexed or text change to current, the field's value as the previous change of the frame left it. owned says that current is already a copy the frame made, which this may change in place.