Variable Text

Text: {
    format(msg, ...rest): string;
    formatFileSize(bytes): string;
} = ...

Type declaration

  • format:function
    • Parameters

      • msg: string
      • Rest ...rest: (string | number)[]

      Returns string

  • formatFileSize:function
    • Formatting a filesize depending on its value: ≥ 1024 GB: 1.0 TB, ≥ 1024 MB: 1.0 GB, ≥ 1024 KB: 1.0 MB, ≥ 1024 B : 1.0 KB, else: bytes. Decimal point is determined by System language.

      Parameters

      • bytes: number

      Returns string