Changeset View
Changeset View
Standalone View
Standalone View
lib/types/redux-types.js
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | import type { | ||||
SaveMessagesPayload, | SaveMessagesPayload, | ||||
NewMessagesPayload, | NewMessagesPayload, | ||||
MessageStorePrunePayload, | MessageStorePrunePayload, | ||||
LocallyComposedMessageInfo, | LocallyComposedMessageInfo, | ||||
ClientDBMessageInfo, | ClientDBMessageInfo, | ||||
SimpleMessagesPayload, | SimpleMessagesPayload, | ||||
ClientDBThreadMessageInfo, | ClientDBThreadMessageInfo, | ||||
FetchPinnedMessagesResult, | FetchPinnedMessagesResult, | ||||
SearchMessagesResponse, | |||||
} from './message-types.js'; | } from './message-types.js'; | ||||
import type { RawReactionMessageInfo } from './messages/reaction.js'; | import type { RawReactionMessageInfo } from './messages/reaction.js'; | ||||
import type { RawTextMessageInfo } from './messages/text.js'; | import type { RawTextMessageInfo } from './messages/text.js'; | ||||
import type { BaseNavInfo } from './nav-types.js'; | import type { BaseNavInfo } from './nav-types.js'; | ||||
import { | import { | ||||
type ForcePolicyAcknowledgmentPayload, | type ForcePolicyAcknowledgmentPayload, | ||||
type PolicyAcknowledgmentPayload, | type PolicyAcknowledgmentPayload, | ||||
type UserPolicies, | type UserPolicies, | ||||
▲ Show 20 Lines • Show All 989 Lines • ▼ Show 20 Lines | | { | ||||
} | } | ||||
| { | | { | ||||
+type: 'UPDATE_CHAT_COMMUNITY_FILTER', | +type: 'UPDATE_CHAT_COMMUNITY_FILTER', | ||||
+payload: string, | +payload: string, | ||||
} | } | ||||
| { | | { | ||||
+type: 'CLEAR_CHAT_COMMUNITY_FILTER', | +type: 'CLEAR_CHAT_COMMUNITY_FILTER', | ||||
+payload: void, | +payload: void, | ||||
} | |||||
| { | |||||
+type: 'SEARCH_MESSAGES_STARTED', | |||||
+payload: void, | |||||
+loadingInfo?: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'SEARCH_MESSAGES_SUCCESS', | |||||
+payload: SearchMessagesResponse, | |||||
+loadingInfo: LoadingInfo, | |||||
} | |||||
| { | |||||
+type: 'SEARCH_MESSAGES_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 |