R
T

AttrValue

tested

Attribute values are JSON-serializable so documents round-trip losslessly and a CRDT adapter can map them onto its own primitives without special-casing.

Signature

ts
export type AttrValue
  = | string
    | number
    | boolean
    | null
    | readonly AttrValue[]
    | { readonly [key: string]: AttrValue };