Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 757 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 757 Bytes

About this module

This module exports Common Flow types for Redux Actions and Reducers,

Installation:

npm install --save redux-common-types-flow

or

yarn add redux-common-types-flow

What and How

This module exports the following common Flow types for Redux Actions and Reducers.

  • APIAction<Payload>
  • APIAction<Payload>
  • ActionCreator<Params, Payload>
  • APIActionCreator<Params, Payload>
  • Reducer<State, Payload>

Import the types as:

import {type APIActionCreator} from 'redux-common-types-flow';
import {type Action} from 'redux-common-types-flow';
// ....

For more information and examples read this article.