UNPKG

url-lib

Version:

A simple, lightweight string utility for Node and browsers that supports serializing and parsing URLs and query strings.

9 lines (8 loc) 447 B
import { NullableUrlParams } from './types'; /** * Serializes the properties of a params object to produce a URL query string. * @param {NullableUrlParams | NullableUrlParams[]} [urlParams] - An object (or array of objects) representing the query * @returns {string} Serialized query string */ declare const formatQuery: (urlParams?: import("./types").UrlParams | NullableUrlParams[] | null | undefined) => string; export default formatQuery;