UNPKG

@empathyco/x-components

Version:
60 lines (30 loc) 916 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 <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&lt;string, string\[\] \| string&gt;; } The object with the url information.