@aws-amplify/storage
Version:
Storage category of aws-amplify
9 lines (8 loc) • 430 B
TypeScript
/**
* Decodes a URL-encoded string by replacing '+' characters with spaces and applying `decodeURIComponent`.
* Reference:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
* @param {string} value - The URL-encoded string to decode.
* @returns {string} The decoded string.
*/
export declare const urlDecode: (value: string) => string;