Skip to content

Commit

Permalink
amend Update: values or meta or both
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Sep 8, 2024
1 parent 3150aad commit e97f0b0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/server-api/src/deltas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ export interface Delta {
*/
export type ValuesDelta = Delta

export interface Update {
export type Update = {
timestamp?: Timestamp
source?: Source
$source?: SourceRef
values: PathValue[]
meta: Meta[]
}
} & // require either values or meta or both
({ values: PathValue[] } | { meta: Meta[] })

// Update delta
export interface PathValue {
Expand Down

0 comments on commit e97f0b0

Please sign in to comment.