0.1.0 • Published 6 years ago

babel-plugin-s2s-d-action-types v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-s2s-d-action-types

s2s plugin for d

Install

$ yarn add --dev babel-plugin-s2s-d-action-types

Example

IN:

// @flow
import * as constants from './constants.js'

export type Action = Increment

OUT:

// @flow
import * as constants from './constants.js'

export type Increment = {
  type: typeof constants.INCREMENT,
}

export type Action = Increment

Usage

{
  ['s2s-d-action-types']
}