We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11be518 commit dc00cb0Copy full SHA for dc00cb0
packages/clients/src/scw/custom-types.ts
@@ -67,3 +67,16 @@ export interface ScwFile {
67
/** Content of the file in base64. */
68
content: string
69
}
70
+
71
+/** A representation of a decimal value, such as 2.5.
72
+ * Comparable to language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.
73
+ * Lookup protobuf google.type.Decimal for details */
74
+export class Decimal {
75
+ private readonly str: string
76
77
+ constructor(v: string) {
78
+ this.str = v
79
+ }
80
81
+ public toString = (): string => this.str
82
+}
0 commit comments