babel-plugin-transform-flow-enums
Babel transform for Flow Enums.
Last updated 3 years ago by flowtype .
MIT · Repository · Original npm · Tarball · package.json
$ npm install babel-plugin-transform-flow-enums 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

2 Versions

  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (2)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE