ModifyURLFunction()
A function type for modifying URLs within the SDK. Takes a URL string as input and returns a modified URL string.
Example
const modifyURL = (url) => {
if (url.includes('products')) {
return url.replace('products', 'p');
}
return url;
};
ModifyURLFunction(
url):string
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | The original URL string to modify |
Returns
string
The modified URL string