Sync / foldkit-sync/entity

CellEdit

type · packages/sync/src/entity.ts:40

type CellEdit<E extends EntityFields, Ms extends Member<E>> = {
  readonly [K in Ms]: {
    readonly id: IdOf<E>
    readonly member: K
    readonly value: ValueOf<E, K>
    readonly at: Option.Option<number>
    readonly by: Option.Option<Author>
  }
}[Ms]

A cell's edit as the slice keeps it: committed at by by, or, with neither, pending.