@vegaprotocol/enums
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

JS enums

Javascript enums for all Vega types. This includes both string representations and number representatons.

e.g.

export enum ConditionOperator {
  /** The default value */
  OPERATOR_UNSPECIFIED = "OPERATOR_UNSPECIFIED",
  /** Verify if the property values are strictly equal or not. */
  OPERATOR_EQUALS = "OPERATOR_EQUALS",
  /** Verify if the data source data value is greater than the Condition value. */
  OPERATOR_GREATER_THAN = "OPERATOR_GREATER_THAN",
  /** Verify if the data source data value is greater than or equal to the Condition
  value. */
  OPERATOR_GREATER_THAN_OR_EQUAL = "OPERATOR_GREATER_THAN_OR_EQUAL",
  /** Verify if the data source data value is less than the Condition value. */
  OPERATOR_LESS_THAN = "OPERATOR_LESS_THAN",
  /** Verify if the data source data value is less or equal to than the Condition
  value. */
  OPERATOR_LESS_THAN_OR_EQUAL = "OPERATOR_LESS_THAN_OR_EQUAL"
}

/** Operator describes the type of comparison.*/
export enum ConditionOperatorNumber {
  /** The default value */
  OPERATOR_UNSPECIFIED = 0,
  /** Verify if the property values are strictly equal or not. */
  OPERATOR_EQUALS = 1,
  /** Verify if the data source data value is greater than the Condition value. */
  OPERATOR_GREATER_THAN = 2,
  /** Verify if the data source data value is greater than or equal to the Condition
  value. */
  OPERATOR_GREATER_THAN_OR_EQUAL = 3,
  /** Verify if the data source data value is less than the Condition value. */
  OPERATOR_LESS_THAN = 4,
  /** Verify if the data source data value is less or equal to than the Condition
  value. */
  OPERATOR_LESS_THAN_OR_EQUAL = 5
}

Readme

Keywords

none

Package Sidebar

Install

npm i @vegaprotocol/enums

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

518 kB

Total Files

12

Last publish

Collaborators

  • dexturr
  • curly42
  • eddhannay
  • vega-bot