Proposed: Centralized redux action #2035

Merged
chrisza4 merged 4 commits from centralized-redux-action into master 2018-10-14 02:54:06 +02:00
Showing only changes of commit d594f46bad - Show all commits

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;