BridgeCollectionDefinition interface

Module @runic-artifex/views/generated in @runic-artifex/views 0.23.0

interface BridgeCollectionDefinition

Generated row codec and key of a keyed collection, or an append-only text field (defineText).

Properties

decode

readonly decode: (wire: unknown) => unknown;

Decodes one row; throws for an invalid one.

key

readonly key: (item: unknown) => string;

The row's key: the string, the normal form of a uuid, or the decimal form of an int32 or int64 key field.

text

readonly text?: {
    readonly nullable: boolean;
};

An append-only text field (defineText) rather than a keyed collection.