ssap_app/node_modules/babel-plugin-transform-flow...
ananyak19 f0453fc9f0 first commit 2026-01-18 17:57:34 +05:30
..
__tests__ first commit 2026-01-18 17:57:34 +05:30
CHANGELOG.md first commit 2026-01-18 17:57:34 +05:30
LICENSE first commit 2026-01-18 17:57:34 +05:30
README.md first commit 2026-01-18 17:57:34 +05:30
index.js first commit 2026-01-18 17:57:34 +05:30
package.json first commit 2026-01-18 17:57:34 +05:30

README.md

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.