Changeset View
Changeset View
Standalone View
Standalone View
native/schema/CommCoreModuleSchema.js
// @flow | // @flow | ||||
'use strict'; | 'use strict'; | ||||
import { TurboModuleRegistry } from 'react-native'; | import { TurboModuleRegistry } from 'react-native'; | ||||
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport.js'; | import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport.js'; | ||||
import type { | import type { ClientDBDraftStoreOperation } from 'lib/types/draft-types.js'; | ||||
ClientDBDraftInfo, | |||||
ClientDBDraftStoreOperation, | |||||
} from 'lib/types/draft-types.js'; | |||||
import type { | import type { | ||||
ClientDBMessageInfo, | ClientDBMessageInfo, | ||||
ClientDBMessageStoreOperation, | ClientDBMessageStoreOperation, | ||||
} from 'lib/types/message-types.js'; | } from 'lib/types/message-types.js'; | ||||
import type { ClientDBStore } from 'lib/types/store-ops-types'; | |||||
import type { | import type { | ||||
ClientDBThreadInfo, | ClientDBThreadInfo, | ||||
ClientDBThreadStoreOperation, | ClientDBThreadStoreOperation, | ||||
} from 'lib/types/thread-types.js'; | } from 'lib/types/thread-types.js'; | ||||
type ClientDBStore = { | |||||
+messages: $ReadOnlyArray<ClientDBMessageInfo>, | |||||
+drafts: $ReadOnlyArray<ClientDBDraftInfo>, | |||||
+threads: $ReadOnlyArray<ClientDBThreadInfo>, | |||||
}; | |||||
type ClientPublicKeys = { | type ClientPublicKeys = { | ||||
+primaryIdentityPublicKeys: { | +primaryIdentityPublicKeys: { | ||||
+ed25519: string, | +ed25519: string, | ||||
+curve25519: string, | +curve25519: string, | ||||
}, | }, | ||||
+notificationIdentityPublicKeys: { | +notificationIdentityPublicKeys: { | ||||
+ed25519: string, | +ed25519: string, | ||||
+curve25519: string, | +curve25519: string, | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |