UNPKG

@empathyco/x-components

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