Skip to content

Documentation / @super-line/core / CrdtCollectionDef

Interface: CrdtCollectionDef

Defined in: packages/core/src/contract.ts:118

A CRDT document collection (ADR-0007). Opened by id (whole-doc merge, not queryable); the presence of the crdt key discriminates it from an LwwCollectionDef. No key — the doc id is external (passed to open(id)), not extracted from the doc body. schema types the doc end-to-end AND is the ingress validation gate (validate-before-commit against the post-merge plaintext snapshot).

Properties

crdt

crdt: DocOptions

Defined in: packages/core/src/contract.ts:122

Marks the collection CRDT; carries the super-store DocOptions.


schema

schema: Schema

Defined in: packages/core/src/contract.ts:120

Doc schema — any Standard Schema. Types open(id) and gates every write at ingress.

Released under the MIT License.