@empathyco/x-components
Version:
Empathy X Components
60 lines (30 loc) • 916 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [extractUrlParameters](./x-adapter-platform.extracturlparameters.md)
## extractUrlParameters() function
Returns the base url path and an object with the query parameters.
**Signature:**
```typescript
export declare function extractUrlParameters(url: string): {
url: string;
params?: Record<string, string[] | string>;
};
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
url
</td><td>
string
</td><td>
The url string to manipulate.
</td></tr>
</tbody></table>
**Returns:**
{ url: string; params?: Record<string, string\[\] \| string>; }
The object with the url information.