Changeset View
Changeset View
Standalone View
Standalone View
lib/types/redux-types.js
Show All 35 Lines | |||||
import type { LoadingStatus, LoadingInfo } from './loading-types.js'; | import type { LoadingStatus, LoadingInfo } from './loading-types.js'; | ||||
import type { UpdateMultimediaMessageMediaPayload } from './media-types.js'; | import type { UpdateMultimediaMessageMediaPayload } from './media-types.js'; | ||||
import type { MessageReportCreationResult } from './message-report-types.js'; | import type { MessageReportCreationResult } from './message-report-types.js'; | ||||
import type { | import type { | ||||
MessageStore, | MessageStore, | ||||
RawMultimediaMessageInfo, | RawMultimediaMessageInfo, | ||||
FetchMessageInfosPayload, | FetchMessageInfosPayload, | ||||
SendMessagePayload, | SendMessagePayload, | ||||
EditMessagePayload, | |||||
SaveMessagesPayload, | SaveMessagesPayload, | ||||
NewMessagesPayload, | NewMessagesPayload, | ||||
MessageStorePrunePayload, | MessageStorePrunePayload, | ||||
LocallyComposedMessageInfo, | LocallyComposedMessageInfo, | ||||
ClientDBMessageInfo, | ClientDBMessageInfo, | ||||
SimpleMessagesPayload, | SimpleMessagesPayload, | ||||
} from './message-types.js'; | } from './message-types.js'; | ||||
import type { RawReactionMessageInfo } from './messages/reaction.js'; | import type { RawReactionMessageInfo } from './messages/reaction.js'; | ||||
▲ Show 20 Lines • Show All 877 Lines • ▼ Show 20 Lines | | { | ||||
+payload: ?ClientAvatar, | +payload: ?ClientAvatar, | ||||
+loadingInfo: LoadingInfo, | +loadingInfo: LoadingInfo, | ||||
} | } | ||||
| { | | { | ||||
+type: 'UPDATE_USER_AVATAR_FAILED', | +type: 'UPDATE_USER_AVATAR_FAILED', | ||||
+error: true, | +error: true, | ||||
+payload: Error, | +payload: Error, | ||||
+loadingInfo: LoadingInfo, | +loadingInfo: LoadingInfo, | ||||
} | |||||
| { | |||||
+type: 'SEND_EDIT_MESSAGE_STARTED', | |||||
+loadingInfo?: LoadingInfo, | |||||
+payload?: void, | |||||
} | |||||
| { | |||||
+type: 'SEND_EDIT_MESSAGE_SUCCESS', | |||||
+payload: EditMessagePayload, | |||||
+loadingInfo: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'SEND_EDIT_MESSAGE_FAILED', | |||||
+error: true, | |||||
+payload: Error, | |||||
+loadingInfo: LoadingInfo, | |||||
}; | }; | ||||
export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string); | export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string); | ||||
export type SuperAction = { | export type SuperAction = { | ||||
type: string, | type: string, | ||||
payload?: ActionPayload, | payload?: ActionPayload, | ||||
loadingInfo?: LoadingInfo, | loadingInfo?: LoadingInfo, | ||||
error?: boolean, | error?: boolean, | ||||
Show All 11 Lines |