Represents a 128-bit decimal type in Firestore documents.
Decimal128Value
Signature:
export declare class Decimal128Value
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(value) | Constructs a new instance of the Decimal128Value class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| stringValue | string |
Methods
| Method | Modifiers | Description |
|---|---|---|
| isEqual(other) | Returns true if this Decimal128Value is equal to the provided one. |
|
| toJSON() | Returns a JSON-serializable representation of this Decimal128Value instance. |
Decimal128Value.(constructor)
Constructs a new instance of the Decimal128Value class
Signature:
constructor(value: string);
Parameters
| Parameter | Type | Description |
|---|---|---|
| value | string |
Decimal128Value.stringValue
Signature:
readonly stringValue: string;
Decimal128Value.isEqual()
Returns true if this Decimal128Value is equal to the provided one.
Signature:
isEqual(other: Decimal128Value): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| other | Decimal128Value | The Decimal128Value to compare against. 'true' if this Decimal128Value is equal to the provided one. |
Returns:
boolean
Decimal128Value.toJSON()
Returns a JSON-serializable representation of this Decimal128Value instance.
Signature:
toJSON(): object;
Returns:
object
a JSON representation of this object.