Changeset View
Changeset View
Standalone View
Standalone View
lib/types/store-ops-types.js
// @flow | // @flow | ||||
import type { DraftStoreOperation } from './draft-types.js'; | import type { | ||||
import type { MessageStoreOperation } from './message-types.js'; | DraftStoreOperation, | ||||
import type { ThreadStoreOperation } from './thread-types.js'; | ClientDBDraftStoreOperation, | ||||
} from './draft-types.js'; | |||||
import type { | |||||
ClientDBMessageStoreOperation, | |||||
MessageStoreOperation, | |||||
} from './message-types.js'; | |||||
import type { | |||||
ClientDBThreadStoreOperation, | |||||
ThreadStoreOperation, | |||||
} from './thread-types.js'; | |||||
export type StoreOperations = { | export type StoreOperations = { | ||||
+draftStoreOperations: $ReadOnlyArray<DraftStoreOperation>, | +draftStoreOperations: $ReadOnlyArray<DraftStoreOperation>, | ||||
+threadStoreOperations: $ReadOnlyArray<ThreadStoreOperation>, | +threadStoreOperations: $ReadOnlyArray<ThreadStoreOperation>, | ||||
+messageStoreOperations: $ReadOnlyArray<MessageStoreOperation>, | +messageStoreOperations: $ReadOnlyArray<MessageStoreOperation>, | ||||
}; | }; | ||||
export type ClientDBStoreOperations = { | |||||
+draftStoreOperations?: $ReadOnlyArray<ClientDBDraftStoreOperation>, | |||||
+threadStoreOperations?: $ReadOnlyArray<ClientDBThreadStoreOperation>, | |||||
+messageStoreOperations?: $ReadOnlyArray<ClientDBMessageStoreOperation>, | |||||
}; |