babel-plugin-redux-action-compose
0.3.0 • Public • Published babel-plugin-redux-action-compose
compose Action type
Install
$ npm install babel-plugin-redux-action-compose
Example
In:
action.js
import type { Action as Other2Action } from './other2/actions'
export type Action = Other2Action
other/action.js
export type Action = { +type: 'A_TYPE' }
Out:
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
Dependencies (8)
Dev Dependencies (12)
Package Sidebar
Install
npm i babel-plugin-redux-action-compose
Weekly Downloads