"Fossies" - the Fresh Open Source Software Archive
Member "flow-0.148.0/packages/babel-plugin-transform-flow-enums/README.md" (1 Apr 2021, 507 Bytes) of package /linux/www/flow-0.148.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format).
Alternatively you can here view or download the uninterpreted source code file.
A member file download can also be achieved by clicking within a package contents listing on the according byte size field.
babel-plugin-transform-flow-enums
This Babel transform turns EnumDeclaration nodes into calls to the Flow Enums runtime.
This plugin requires the Flow syntax plugin, with {enums: true} enabled.
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.