encode.d.ts 542 B

123456789101112131415161718
  1. /**
  2. * It serializes passed object into string
  3. * The numeric values must be finite.
  4. * Any other input values will be coerced to empty strings.
  5. *
  6. * @param obj The object to serialize into a URL query string
  7. * @param sep The substring used to delimit key and value pairs in the query string
  8. * @param eq The substring used to delimit keys and values in the query string
  9. * @param name
  10. */
  11. export type encodeFuncType = (
  12. obj?: Record<any, unknown>,
  13. sep?: string,
  14. eq?: string,
  15. name?: any
  16. ) => string;
  17. export default encodeFuncType;