Skip to content

Commit

Permalink
Improve thunk types slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzieOrca committed May 30, 2019
1 parent c29e9e0 commit c0ef85b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/containers/WelcomeScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { connect } from 'react-redux';
import { SafeAreaView } from 'react-native';
import { useTranslation } from 'react-i18next';
import { useNavigationParam } from 'react-navigation-hooks';
import { ThunkDispatch } from 'redux-thunk';
import { ThunkDispatch, ThunkAction } from 'redux-thunk';

import { Flex, Text, Button } from '../../components/common';
import BottomButton from '../../components/BottomButton';
Expand All @@ -18,8 +18,9 @@ const WelcomeScreen = ({
next,
}: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatch: ThunkDispatch<any, null, any>;
next: (params: { signin: boolean }) => {};
dispatch: ThunkDispatch<any, null, never>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
next: (params: { signin: boolean }) => ThunkAction<void, any, null, never>;
}) => {
useEffect(() => {
disableBack.add();
Expand Down

0 comments on commit c0ef85b

Please sign in to comment.