index.d.ts 470 B

123456789101112131415161718
  1. /**
  2. * Parse space-separated tokens to an array of strings.
  3. *
  4. * @param {string} value
  5. * Space-separated tokens.
  6. * @returns {Array<string>}
  7. * List of tokens.
  8. */
  9. export function parse(value: string): Array<string>
  10. /**
  11. * Serialize an array of strings as space separated-tokens.
  12. *
  13. * @param {Array<string|number>} values
  14. * List of tokens.
  15. * @returns {string}
  16. * Space-separated tokens.
  17. */
  18. export function stringify(values: Array<string | number>): string