babel-plugin-redux-action-compose

0.3.0 • Public • Published

babel-plugin-redux-action-compose Build Status

compose Action type

Install

$ npm install babel-plugin-redux-action-compose

Example

In:

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}

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

Package Sidebar

Install

npm i babel-plugin-redux-action-compose

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • akameco