index.d.ts 435 B

1234567891011121314151617181920
  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 };