UNPKG

@aws-amplify/core

Version:
13 lines (12 loc) 615 B
/** * Returns a canonical query string. * * @param searchParams `searchParams` from the request url. * @returns URL-encoded query string parameters, separated by ampersands (&). Percent-encode reserved characters, * including the space character. Encode names and values separately. If there are empty parameters, append the equals * sign to the parameter name before encoding. After encoding, sort the parameters alphabetically by key name. If there * is no query string, use an empty string (""). * * @internal */ export declare const getCanonicalQueryString: (searchParams: URLSearchParams) => string;