Add redux action type

This commit is contained in:
Chakrit Likitkhajorn 2018-10-13 23:53:34 +07:00
parent 445bf77e36
commit d594f46bad

View file

@ -0,0 +1,6 @@
// @flow
// eslint-disable-next-line no-use-before-define
export type Dispatch<T> = (action: T | Promise<T> | Array<T> | ThunkAction<T>) => any; // Need to refer to ThunkAction
export type GetState = () => {};
export type ThunkAction<T> = (dispatch: Dispatch<T>, getState: GetState) => any;