yeast.d.ts 625 B

1234567891011121314151617181920212223
  1. /**
  2. * Return a string representing the specified number.
  3. *
  4. * @param {Number} num The number to convert.
  5. * @returns {String} The string representation of the number.
  6. * @api public
  7. */
  8. export declare function encode(num: any): string;
  9. /**
  10. * Return the integer value specified by the given string.
  11. *
  12. * @param {String} str The string to convert.
  13. * @returns {Number} The integer value represented by the string.
  14. * @api public
  15. */
  16. export declare function decode(str: any): number;
  17. /**
  18. * Yeast: A tiny growing id generator.
  19. *
  20. * @returns {String} A unique id.
  21. * @api public
  22. */
  23. export declare function yeast(): string;