Add TypeScript declarations
This commit is contained in:
@@ -7,9 +7,7 @@
|
||||
|
||||
// @generated by enums.py
|
||||
|
||||
// @flow
|
||||
// @format
|
||||
const CONSTANTS = {
|
||||
module.exports = {
|
||||
ALIGN_COUNT: 8,
|
||||
ALIGN_AUTO: 0,
|
||||
ALIGN_FLEX_START: 1,
|
||||
@@ -109,103 +107,3 @@ const CONSTANTS = {
|
||||
WRAP_WRAP: 1,
|
||||
WRAP_WRAP_REVERSE: 2,
|
||||
};
|
||||
export type Yoga$Align =
|
||||
| typeof CONSTANTS.ALIGN_AUTO
|
||||
| typeof CONSTANTS.ALIGN_FLEX_START
|
||||
| typeof CONSTANTS.ALIGN_CENTER
|
||||
| typeof CONSTANTS.ALIGN_FLEX_END
|
||||
| typeof CONSTANTS.ALIGN_STRETCH
|
||||
| typeof CONSTANTS.ALIGN_BASELINE
|
||||
| typeof CONSTANTS.ALIGN_SPACE_BETWEEN
|
||||
| typeof CONSTANTS.ALIGN_SPACE_AROUND;
|
||||
|
||||
export type Yoga$Dimension =
|
||||
| typeof CONSTANTS.DIMENSION_WIDTH
|
||||
| typeof CONSTANTS.DIMENSION_HEIGHT;
|
||||
|
||||
export type Yoga$Direction =
|
||||
| typeof CONSTANTS.DIRECTION_INHERIT
|
||||
| typeof CONSTANTS.DIRECTION_LTR
|
||||
| typeof CONSTANTS.DIRECTION_RTL;
|
||||
|
||||
export type Yoga$Display =
|
||||
| typeof CONSTANTS.DISPLAY_FLEX
|
||||
| typeof CONSTANTS.DISPLAY_NONE;
|
||||
|
||||
export type Yoga$Edge =
|
||||
| typeof CONSTANTS.EDGE_LEFT
|
||||
| typeof CONSTANTS.EDGE_TOP
|
||||
| typeof CONSTANTS.EDGE_RIGHT
|
||||
| typeof CONSTANTS.EDGE_BOTTOM
|
||||
| typeof CONSTANTS.EDGE_START
|
||||
| typeof CONSTANTS.EDGE_END
|
||||
| typeof CONSTANTS.EDGE_HORIZONTAL
|
||||
| typeof CONSTANTS.EDGE_VERTICAL
|
||||
| typeof CONSTANTS.EDGE_ALL;
|
||||
|
||||
export type Yoga$ExperimentalFeature =
|
||||
| typeof CONSTANTS.EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS;
|
||||
|
||||
export type Yoga$FlexDirection =
|
||||
| typeof CONSTANTS.FLEX_DIRECTION_COLUMN
|
||||
| typeof CONSTANTS.FLEX_DIRECTION_COLUMN_REVERSE
|
||||
| typeof CONSTANTS.FLEX_DIRECTION_ROW
|
||||
| typeof CONSTANTS.FLEX_DIRECTION_ROW_REVERSE;
|
||||
|
||||
export type Yoga$Gutter =
|
||||
| typeof CONSTANTS.GUTTER_COLUMN
|
||||
| typeof CONSTANTS.GUTTER_ROW
|
||||
| typeof CONSTANTS.GUTTER_ALL;
|
||||
|
||||
export type Yoga$Justify =
|
||||
| typeof CONSTANTS.JUSTIFY_FLEX_START
|
||||
| typeof CONSTANTS.JUSTIFY_CENTER
|
||||
| typeof CONSTANTS.JUSTIFY_FLEX_END
|
||||
| typeof CONSTANTS.JUSTIFY_SPACE_BETWEEN
|
||||
| typeof CONSTANTS.JUSTIFY_SPACE_AROUND
|
||||
| typeof CONSTANTS.JUSTIFY_SPACE_EVENLY;
|
||||
|
||||
export type Yoga$LogLevel =
|
||||
| typeof CONSTANTS.LOG_LEVEL_ERROR
|
||||
| typeof CONSTANTS.LOG_LEVEL_WARN
|
||||
| typeof CONSTANTS.LOG_LEVEL_INFO
|
||||
| typeof CONSTANTS.LOG_LEVEL_DEBUG
|
||||
| typeof CONSTANTS.LOG_LEVEL_VERBOSE
|
||||
| typeof CONSTANTS.LOG_LEVEL_FATAL;
|
||||
|
||||
export type Yoga$MeasureMode =
|
||||
| typeof CONSTANTS.MEASURE_MODE_UNDEFINED
|
||||
| typeof CONSTANTS.MEASURE_MODE_EXACTLY
|
||||
| typeof CONSTANTS.MEASURE_MODE_AT_MOST;
|
||||
|
||||
export type Yoga$NodeType =
|
||||
| typeof CONSTANTS.NODE_TYPE_DEFAULT
|
||||
| typeof CONSTANTS.NODE_TYPE_TEXT;
|
||||
|
||||
export type Yoga$Overflow =
|
||||
| typeof CONSTANTS.OVERFLOW_VISIBLE
|
||||
| typeof CONSTANTS.OVERFLOW_HIDDEN
|
||||
| typeof CONSTANTS.OVERFLOW_SCROLL;
|
||||
|
||||
export type Yoga$PositionType =
|
||||
| typeof CONSTANTS.POSITION_TYPE_STATIC
|
||||
| typeof CONSTANTS.POSITION_TYPE_RELATIVE
|
||||
| typeof CONSTANTS.POSITION_TYPE_ABSOLUTE;
|
||||
|
||||
export type Yoga$PrintOptions =
|
||||
| typeof CONSTANTS.PRINT_OPTIONS_LAYOUT
|
||||
| typeof CONSTANTS.PRINT_OPTIONS_STYLE
|
||||
| typeof CONSTANTS.PRINT_OPTIONS_CHILDREN;
|
||||
|
||||
export type Yoga$Unit =
|
||||
| typeof CONSTANTS.UNIT_UNDEFINED
|
||||
| typeof CONSTANTS.UNIT_POINT
|
||||
| typeof CONSTANTS.UNIT_PERCENT
|
||||
| typeof CONSTANTS.UNIT_AUTO;
|
||||
|
||||
export type Yoga$Wrap =
|
||||
| typeof CONSTANTS.WRAP_NO_WRAP
|
||||
| typeof CONSTANTS.WRAP_WRAP
|
||||
| typeof CONSTANTS.WRAP_WRAP_REVERSE;
|
||||
|
||||
module.exports = CONSTANTS;
|
||||
|
Reference in New Issue
Block a user