diff --git a/web/types/nav-types.js b/web/types/nav-types.js --- a/web/types/nav-types.js +++ b/web/types/nav-types.js @@ -31,8 +31,8 @@ 'danger-zone', ]); -export type NavigationChatMode = 'view' | 'create'; -const navigationChatModeValidator = t.enums.of(['view', 'create']); +export type WebNavigationChatMode = 'view' | 'create'; +const webNavigationChatModeValidator = t.enums.of(['view', 'create']); export type NavInfo = { ...$Exact, @@ -41,7 +41,7 @@ +pendingThread?: ThreadInfo, +settingsSection?: WebNavigationSettingsSection, +selectedUserList?: $ReadOnlyArray, - +chatMode?: NavigationChatMode, + +chatMode?: WebNavigationChatMode, +inviteSecret?: ?string, +loginMethod?: WebLoginMethod, }; @@ -54,7 +54,7 @@ pendingThread: t.maybe(threadInfoValidator), settingsSection: t.maybe(webNavigationSettingsSectionValidator), selectedUserList: t.maybe(t.list(accountUserInfoValidator)), - chatMode: t.maybe(navigationChatModeValidator), + chatMode: t.maybe(webNavigationChatModeValidator), inviteSecret: t.maybe(t.String), loginMethod: t.maybe(webLoginMethodValidator), });