Constant Class
Beta
A Constant is a specific type of Unit that represents a number.
Extends
Methods
| Name |
Description |
|
| constructor(schema: Schema, name: string): Constant |
|
|
| fromJSON(constantProps: ConstantProps): Promise<void> |
|
|
| fromJSONSync(constantProps: ConstantProps): void |
|
|
| toJSON(standalone: boolean, includeSchemaVersion: boolean): ConstantProps |
Save this Constants properties to an object for serializing to JSON. |
|
Inherited methods
Properties
| Name |
Type |
Description |
|
| _definition Protected |
string |
|
|
| _denominator Protected |
undefined | number |
|
|
| _numerator Protected |
undefined | number |
|
|
| _phenomenon Protected |
undefined | LazyLoadedPhenomenon |
|
|
| definition Accessor ReadOnly |
string |
|
|
| denominator Accessor ReadOnly |
number |
|
|
| hasDenominator Accessor ReadOnly |
boolean |
|
|
| hasNumerator Accessor ReadOnly |
boolean |
|
|
| numerator Accessor ReadOnly |
number |
|
|
| phenomenon Accessor ReadOnly |
undefined | LazyLoadedPhenomenon |
|
|
| schemaItemType Readonly |
Constant |
|
|
Inherited properties
Defined in
Last Updated:
30 November, 2023