UNPKG

236 BJavaScriptView Raw
1/* @flow */
2declare type Action<J: {} = {}> = J & {
3 type: string,
4};
5
6declare type ThunkAction<L: Promise<any> | void = void> = (
7 dispatch: (Action<{}> | ThunkAction<>) => Promise<any> | void,
8 getState: () => Object
9) => L;