Miss any of our Open RFC calls?Watch the recordings here! »

babel-plugin-redux-state-compose

0.4.0 • Public • Published

babel-plugin-redux-state-compose Build Status

compose redux State type

Install

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

Usage

In

// @flow
import type { State as HogeState } from './Hoge/reducer'
 
export type State = {
  hogeHogeState,
}

App/reducer.js

// @flow
export type State = { appstring }
 
export const initialState: State = { app: 'app' }

Out

// @flow
import type { State as AppState } from './App/reducer';
import type { State as HogeState } from './Hoge/reducer';
 
export type State = {
  AppAppState;
  HogeHogeState;
};

babalrc

{
  "plugins": [["redux-store-compose", {input: 'App/reducer.js'}]]
}

License

MIT © akameco

Install

npm i babel-plugin-redux-state-compose

DownloadsWeekly Downloads

4

Version

0.4.0

License

MIT

Last publish

Collaborators

  • avatar