@empathyco/x-components
Version:
Empathy X Components
30 lines (18 loc) • 781 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [extractUrlParameters](./x-adapter-platform.extracturlparameters.md)
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>;
};
```
| Parameter | Type | Description |
| --- | --- | --- |
| url | string | The url string to manipulate. |
**Returns:**
{ url: string; params?: Record<string, string\[\] \| string>; }
The object with the url information.