Add redux action type
This commit is contained in:
parent
445bf77e36
commit
d594f46bad
1 changed files with 6 additions and 0 deletions
6
src/renderer/types/redux.js
Normal file
6
src/renderer/types/redux.js
Normal 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;
|
Loading…
Reference in a new issue