UNPKG

@wordpress/url

Version:
10 lines 393 B
/** * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if * `decodeURIComponent` throws an error. * * @param {string} uriComponent URI component to decode. * * @return {string} Decoded URI component if possible. */ export function safeDecodeURIComponent(uriComponent: string): string; //# sourceMappingURL=safe-decode-uri-component.d.ts.map