You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
435 B

2 weeks ago
  1. /**
  2. * Generate random string.
  3. *
  4. * @return { string }
  5. */
  6. declare function randomStr(): string;
  7. /**
  8. * Format params into querying string.
  9. *
  10. * @return {string[]}
  11. */
  12. declare function formatParams(queryKey: string, value: any): string[];
  13. /**
  14. * Flat querys.
  15. *
  16. * @param {string[] | (string[])[]} array
  17. * @returns
  18. */
  19. declare function flatten(array: string[] | (string[])[]): string[];
  20. export { formatParams, flatten, randomStr };