0.3.0 • Published 8 years ago
babel-plugin-redux-action-compose v0.3.0
babel-plugin-redux-action-compose 
compose Action type
Install
$ npm install babel-plugin-redux-action-composeExample
In:
action.js
// @flow
import type { Action as Other2Action } from './other2/actions'
export type Action = Other2Actionother/action.js
// @flow
export type Action = { +type: 'A_TYPE' }Out:
// @flow
import type { Action as Other2Action } from './other2/actions';
import type { Action as OtherAction } from './other/actions';
export type Action = Other2Action | OtherAction;Usage
.babelrc
{
"plugins": [
["redux-action-compose", {inputPath: 'othre/action.js'}]
]
}License
MIT © akameco