PeerborneCollectionOptions
Defined in: index.ts:14
Type Parameters
Section titled “Type Parameters”Row extends object
Key extends string | number
Doc
Change
Section titled “Change”Change
PublicKey
Section titled “PublicKey”PublicKey
Properties
Section titled “Properties”getKey
Section titled “getKey”getKey: (
row) =>Key
Defined in: index.ts:23
Parameters
Section titled “Parameters”Row
Returns
Section titled “Returns”Key
id:
string
Defined in: index.ts:21
mutate
Section titled “mutate”mutate: (
mutations) =>Change
Defined in: index.ts:27
Translate field changes into CRDT operations; do not replace whole documents.
Parameters
Section titled “Parameters”mutations
Section titled “mutations”readonly PeerborneRowMutation<Row, Key>[]
Returns
Section titled “Returns”Change
select
Section titled “select”select: (
document) => readonlyRow[]
Defined in: index.ts:25
Return plain, structured-cloneable rows with unique, stable keys.
Parameters
Section titled “Parameters”document
Section titled “document”Doc
Returns
Section titled “Returns”readonly Row[]
store:
DocumentStore<Doc,Change,PublicKey>
Defined in: index.ts:22