decode.d.ts 747 B

1234567891011121314151617181920
  1. /**
  2. * parses a URL query string into a collection of key and value pairs
  3. *
  4. * @param qs The URL query string to parse
  5. * @param sep The substring used to delimit key and value pairs in the query string
  6. * @param eq The substring used to delimit keys and values in the query string
  7. * @param options.decodeURIComponent The function to use when decoding percent-encoded characters in the query string
  8. * @param options.maxKeys Specifies the maximum number of keys to parse. Specify 0 to remove key counting limitations default 1000
  9. */
  10. export type decodeFuncType = (
  11. qs?: string,
  12. sep?: string,
  13. eq?: string,
  14. options?: {
  15. decodeURIComponent?: Function;
  16. maxKeys?: number;
  17. }
  18. ) => Record<any, unknown>;
  19. export default decodeFuncType;