diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js --- a/lib/socket/socket.react.js +++ b/lib/socket/socket.react.js @@ -106,7 +106,7 @@ +preRequestUserState: PreRequestUserState, +lastCommunicatedPlatformDetails: ?PlatformDetails, +decompressSocketMessage: CompressedData => string, - +activeSessionRecovery: null | RecoveryFromReduxActionSource, + +activeSessionRecovery?: null | RecoveryFromReduxActionSource, +dispatch: Dispatch, +dispatchActionPromise: DispatchActionPromise, +fetchPendingUpdates: FetchPendingUpdatesInput => Promise, diff --git a/lib/types/community-types.js b/lib/types/community-types.js --- a/lib/types/community-types.js +++ b/lib/types/community-types.js @@ -47,7 +47,7 @@ export type ClientCommunityInfoWithCommunityName = $ReadOnly<{ ...ServerCommunityInfo, +communityName: string, - +threadInfo: ThinRawThreadInfo | null, + +threadInfo?: ThinRawThreadInfo, }>; export const clientCommunityInfoWithCommunityNameValidator: TInterface = diff --git a/lib/types/relationship-types.js b/lib/types/relationship-types.js --- a/lib/types/relationship-types.js +++ b/lib/types/relationship-types.js @@ -89,7 +89,7 @@ | LegacyFarcasterRelationshipRequest; export type RelationshipRequestUserInfo = { - +createRobotextInThinThread: boolean, + +createRobotextInThinThread?: boolean, }; export type RelationshipRequestWithRobotext = { +action: 'farcaster' | 'friend', diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js --- a/lib/types/socket-types.js +++ b/lib/types/socket-types.js @@ -364,7 +364,7 @@ +type: 3, +responseTo: number, +message: string, - +sessionChange: SessionChange, + +sessionChange?: SessionChange, }; export const authErrorServerSocketMessageValidator: TInterface = tShape({ @@ -516,7 +516,7 @@ +connectionIssue: ?ConnectionIssue, // When this is flipped to truthy, a session recovery is attempted // This can happen when the keyserver invalidates the session - +activeSessionRecovery: null | RecoveryFromReduxActionSource, + +activeSessionRecovery?: null | RecoveryFromReduxActionSource, }; export const connectionInfoValidator: TInterface = tShape({ diff --git a/lib/types/thread-permission-types.js b/lib/types/thread-permission-types.js --- a/lib/types/thread-permission-types.js +++ b/lib/types/thread-permission-types.js @@ -513,7 +513,7 @@ export type ThreadPermissionInfo = | { +value: true, +source: string } - | { +value: false, +source: null }; + | { +value: false, +source?: null }; export const threadPermissionInfoValidator: TUnion = t.union([ tShape({ value: tBool(true), source: tID }), diff --git a/lib/types/thread-types.js b/lib/types/thread-types.js --- a/lib/types/thread-types.js +++ b/lib/types/thread-types.js @@ -382,7 +382,7 @@ +type: 5, +sourceMessageID: string, ...BaseNewThreadRequest, - +parentThreadID: string, + +parentThreadID?: string, }>; export type ClientNewThinThreadRequest = $ReadOnly<{ diff --git a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js --- a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js +++ b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js @@ -57,7 +57,7 @@ +type: 'BACKUP_DATA', +userID: string, +primaryDeviceID: string, - +backupData: QRAuthBackupData, + +backupData: ?QRAuthBackupData, }; export const backupDataP2PMessageValidator: TInterface = tShape({ diff --git a/lib/utils/user-info-extraction-utils.js b/lib/utils/user-info-extraction-utils.js --- a/lib/utils/user-info-extraction-utils.js +++ b/lib/utils/user-info-extraction-utils.js @@ -24,10 +24,10 @@ }; type AdditionalResponseFields = { - +cookieChange: AdditionalCookieChange, + +cookieChange?: AdditionalCookieChange, +error?: string, +payload?: Object, - +success: boolean, + +success?: boolean, }; const additionalResponseFieldsValidator = tShape({