7 lines
298 B
JavaScript
7 lines
298 B
JavaScript
|
// @flow
|
||
|
/* eslint-disable no-use-before-define */
|
||
|
declare type GetState = () => any;
|
||
|
declare type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;
|
||
|
declare type Dispatch = (action: {} | Promise<*> | Array<{}> | ThunkAction) => any; // Need to refer to ThunkAction
|
||
|
/* eslint-enable */
|