Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flow-enums-runtime

facebook5.7mMIT0.0.6

Runtime to be use with the Flow Enums transform.

readme

flow-enums-runtime

This is the runtime used with the Flow Enums Babel transform.

Install this package in your regular dependencies, as it is required and used by the output of the Flow Enums transform at runtime.

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

Requirements

This package requires support (either natively or through a polyfill) for Map and Array.prototype.values.

Support for WeakMap is suggested, but not required (will fall back to Map instead if not present).

changelog

0.0.6

  • Update README documentation

0.0.5

  • .members() on a mirrored enum now returns an iterator (not just an iterable), matching non-mirrored enums

0.0.4

  • Added getName method

0.0.3

  • Initial open-source version