Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

quality.d.ts 544B

12345678910111213141516171819202122
  1. import { Decimal } from 'decimal.js';
  2. import { Buffer } from 'buffer/';
  3. /**
  4. * class for encoding and decoding quality
  5. */
  6. declare class quality {
  7. /**
  8. * Encode quality amount
  9. *
  10. * @param arg string representation of an amount
  11. * @returns Serialized quality
  12. */
  13. static encode(quality: string): Buffer;
  14. /**
  15. * Decode quality amount
  16. *
  17. * @param arg hex-string denoting serialized quality
  18. * @returns deserialized quality
  19. */
  20. static decode(quality: string): Decimal;
  21. }
  22. export { quality };