Changeset View
Changeset View
Standalone View
Standalone View
lib/types/redux-types.js
Show All 32 Lines | |||||
import type { | import type { | ||||
CalendarFilter, | CalendarFilter, | ||||
CalendarThreadFilter, | CalendarThreadFilter, | ||||
SetCalendarDeletedFilterPayload, | SetCalendarDeletedFilterPayload, | ||||
} from './filter-types.js'; | } from './filter-types.js'; | ||||
import type { LifecycleState } from './lifecycle-state-types.js'; | import type { LifecycleState } from './lifecycle-state-types.js'; | ||||
import type { | import type { | ||||
FetchInviteLinksResponse, | FetchInviteLinksResponse, | ||||
InviteLinksStore, | |||||
InviteLinkVerificationResponse, | InviteLinkVerificationResponse, | ||||
} from './link-types.js'; | } from './link-types.js'; | ||||
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, | ||||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | export type BaseAppState<NavInfo: BaseNavInfo> = { | ||||
lifecycleState: LifecycleState, | lifecycleState: LifecycleState, | ||||
enabledApps: EnabledApps, | enabledApps: EnabledApps, | ||||
reportStore: ReportStore, | reportStore: ReportStore, | ||||
nextLocalID: number, | nextLocalID: number, | ||||
dataLoaded: boolean, | dataLoaded: boolean, | ||||
userPolicies: UserPolicies, | userPolicies: UserPolicies, | ||||
deviceToken: ?string, | deviceToken: ?string, | ||||
+commServicesAccessToken: ?string, | +commServicesAccessToken: ?string, | ||||
+inviteLinksStore: InviteLinksStore, | |||||
... | ... | ||||
}; | }; | ||||
// Web JS runtime doesn't have access to the cookie for security reasons. | // Web JS runtime doesn't have access to the cookie for security reasons. | ||||
// Native JS doesn't have a sessionID because the cookieID is used instead. | // Native JS doesn't have a sessionID because the cookieID is used instead. | ||||
export type NativeAppState = BaseAppState<*> & { | export type NativeAppState = BaseAppState<*> & { | ||||
sessionID?: void, | sessionID?: void, | ||||
cookie: ?string, | cookie: ?string, | ||||
▲ Show 20 Lines • Show All 965 Lines • Show Last 20 Lines |