UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

19 lines (18 loc) 694 B
import { Decimal } from "decimal.js"; import { Value } from "./Value.js"; import { Comparable } from "./Comparable.js"; import { ExprType } from "../type/ExprType.js"; export declare class NumericValue implements Value<Decimal>, Comparable<NumericValue> { private readonly numericValue; constructor(value: Decimal | string | number); static of(value: Decimal | string | number): NumericValue; getValue(): Decimal; getType(): ExprType; static isNumericValueType(arg: any): arg is NumericValueType; equals(other: Value<any>): boolean; toString(): string; compareTo(other: NumericValue): number; } export type NumericValueType = { numericValue: Decimal; };