Skip to content

Commit

Permalink
navActions types: Tighten navigateBack's return type a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Jul 14, 2021
1 parent 462d5e8 commit 17cc64f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nav/navActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @flow strict-local */
import {
type PopAction,
StackActions,
CommonActions,
type GenericNavigationAction,
Expand All @@ -9,7 +10,7 @@ import type { Message, Narrow, SharedData, UserId } from '../types';
import type { ApiResponseServerSettings } from '../api/settings/getServerSettings';
import { getSameRoutesCount } from '../selectors';

export const navigateBack = (): GenericNavigationAction => StackActions.pop(getSameRoutesCount());
export const navigateBack = (): PopAction => StackActions.pop(getSameRoutesCount());

/*
* "Reset" actions, to explicitly prohibit back navigation.
Expand Down

0 comments on commit 17cc64f

Please sign in to comment.