Skip to content

Commit dd20816

Browse files
committed
action types [nfc]: Inline AccountAction
This type variable's name is so similar to PerAccountAction, AllAccountsAction, AccountIndependentAction, and PerAccountApplicableAction, that it's easy to be confused into thinking it's just as important as those. Remove it.
1 parent d81ab03 commit dd20816

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/actionTypes.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,13 +616,6 @@ type RefreshServerEmojiDataAction = $ReadOnly<{|
616616
// First, some convenience unions without much meaning.
617617
// (We should perhaps just inline these below.)
618618

619-
type AccountAction =
620-
| AccountSwitchAction
621-
| AccountRemoveAction
622-
| LoginSuccessAction
623-
| LogoutAction
624-
| DismissServerPushSetupNoticeAction;
625-
626619
type LoadingAction =
627620
| DeadQueueAction
628621
| RegisterStartAction
@@ -672,7 +665,11 @@ export type AllAccountsAction =
672665
// This affects all the per-account states as well as everything else.
673666
| RehydrateAction
674667
// These can rearrange the `state.accounts` list itself.
675-
| AccountAction
668+
| AccountSwitchAction
669+
| AccountRemoveAction
670+
| LoginSuccessAction
671+
| LogoutAction
672+
| DismissServerPushSetupNoticeAction
676673
// These two are about a specific account… but not just the active one,
677674
// and they encode which one they mean.
678675
| AckPushTokenAction | UnackPushTokenAction

0 commit comments

Comments
 (0)