Skip to content

[I] NumericValue

A numeric value whose exact contents are preserved independently of JavaScript number precision.

  • BaseValue
PropertyModifierTypeDescriptionOverridesInherited from
entityKindreadonly"Value"Distinguishes a concrete value from a type or parameter constraint.-BaseValue.entityKind
scalarpublicScalar | undefinedSelected numeric scalar, or undefined for a literal without an inferred or explicit scalar.--
typepublicTypeRepresent the storage type of a value. Example `const a = “hello”; // Type here would be “hello” const b: string = a; // Type here would be string const c: stringint32 = b; // Type here would be stringint32`
valuepublicNumericExact numeric contents; use Numeric conversion methods when a JavaScript number is needed.--
valueKindpublic"NumericValue"Discriminant for an exact numeric payload.BaseValue.valueKind-