babel-plugin-s2s-d-action-types

generate action types

Usage no npm install needed!

<script type="module">
  import babelPluginS2sDActionTypes from 'https://cdn.skypack.dev/babel-plugin-s2s-d-action-types';
</script>

README

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']
}