diff --git a/packages/clients/src/scw/custom-types.ts b/packages/clients/src/scw/custom-types.ts index 34e79d060..8e5d16c8b 100644 --- a/packages/clients/src/scw/custom-types.ts +++ b/packages/clients/src/scw/custom-types.ts @@ -67,3 +67,16 @@ export interface ScwFile { /** Content of the file in base64. */ content: string } + +/** A representation of a decimal value, such as 2.5. + * Comparable to language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. + * Lookup protobuf google.type.Decimal for details */ +export class Decimal { + private readonly str: string + + constructor(v: string) { + this.str = v + } + + public toString = (): string => this.str +}