UNPKG

@dcodegroup-au/dsg-vue

Version:

Front-end Vue/Tailwind DSG for UntitledUI.

19 lines (18 loc) 607 B
/** * ---------------------------------------------------------- * Get Query Strings * ---------------------------------------------------------- * Retrieves query strings from a URL and returns them as an * object. If a query string appears multiple times, it will * be returned as an array. * * @param url - The URL to parse. * @returns {Record<string, string | string[]>} - An object * * ---------------------------------------------------------- */ export interface URLParam { key: string; value: string[]; } export declare const getQueryStrings: (url?: string) => URLParam[];