Changeset View
Changeset View
Standalone View
Standalone View
lib/types/db-ops-types.js
// @flow | // @flow | ||||
import type { StoreOperations } from './store-ops-types.js'; | import type { StoreOperations } from './store-ops-types.js'; | ||||
export type MessageID = string; | export type MessageID = string; | ||||
type DBOpsEntry = | export type DBOpsEntry = | ||||
| { | | { | ||||
+messageID: MessageID, | +messageID: MessageID, | ||||
+ops?: ?StoreOperations, | +ops?: ?StoreOperations, | ||||
} | } | ||||
| { | | { | ||||
+ops: StoreOperations, | +ops: StoreOperations, | ||||
}; | }; | ||||
export type DBOpsStore = { | export type DBOpsStore = { | ||||
+queuedOps: $ReadOnlyArray<DBOpsEntry>, | +queuedOps: $ReadOnlyArray<DBOpsEntry>, | ||||
}; | }; |