Namespaced and TypeScript Enums #1285
Reference in New Issue
Block a user
No description provided.
Delete Branch "export-D45570417"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
Enums are currently exposed to the JS package as constants (e.g.
import {ERRATA_NONE} from 'yoga-layout'
).This exports enums in the form of
import {Errata} from 'yoga-layout'
thenErrata.None
.It would be more ergonomic for these to be string union based enums instead, but right now it is a pretty thin wrapper around the native API, we need ordinal values to do things with bit masks, and folks have wanted to serialize them before.
Reviewed By: yungsters
Differential Revision: D45570417
This pull request was exported from Phabricator. Differential Revision: D45570417
This pull request has been merged in facebook/yoga@104646d8ca.
Pull request closed