babel-plugin-transform-flow-enums

0.0.2 • Public • Published

babel-plugin-transform-flow-enums

This Babel transform turns Flow Enums EnumDeclaration nodes into calls to the Flow Enums runtime.

This plugin requires the Flow syntax plugin, with {enums: true} enabled.

Read more about how to enable Flow Enums in your project.

Options

  • getRuntime:
    • Optional function. Called with Babel types as the first argument.
    • If supplied, will be called to produce a Babel AST node which will be a reference to the Flow Enums runtime.
    • If omitted, require('flow-enums-runtime') will be used.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1,157,952
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1,157,952
  • 0.0.1
    4,276

Package Sidebar

Install

npm i babel-plugin-transform-flow-enums

Weekly Downloads

1,162,228

Version

0.0.2

License

MIT

Unpacked Size

6.81 kB

Total Files

8

Last publish

Collaborators

  • gkz
  • flowtype