compose Action type
deprecated
You can use akameco/babel-plugin-s2s-action-root
$ npm install babel-plugin-redux-action-compose
action.js
// @flow
import type { Action as Other2Action } from './other2/actions'
export type Action = Other2Action
other/action.js
// @flow
export type Action = { +type: 'A_TYPE' }
// @flow
import type { Action as Other2Action } from './other2/actions';
import type { Action as OtherAction } from './other/actions';
export type Action = Other2Action | OtherAction;
.babelrc
{
"plugins": [
["redux-action-compose", {input: 'othre/action.js'}]
]
}
MIT © akameco