zepio/app/types/redux.js

11 lines
326 B
JavaScript
Raw Normal View History

2018-11-23 10:41:50 -08:00
// @flow
2019-01-30 16:21:22 -08:00
import type { AppState } from './app-state';
2018-11-23 10:41:50 -08:00
export type Action = { type: $Subtype<string>, payload: Object };
2019-01-30 16:21:22 -08:00
export type GetState = () => AppState;
2019-01-28 16:34:07 -08:00
export type Dispatch = (action: Action) => void;
2019-01-30 16:21:22 -08:00
export type Middleware = ({ dispatch: Dispatch, getState: GetState }) => (
(Action) => void,
) => Action => void;