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 7c17cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server-api/src/deltas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ 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 7c17cfa

Please sign in to comment.