mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-17 04:53:49 +00:00
Move some modules from src to shlink-web-component
This commit is contained in:
5
shlink-web-component/utils/helpers/query.ts
Normal file
5
shlink-web-component/utils/helpers/query.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import qs from 'qs';
|
||||
|
||||
export const parseQuery = <T>(search: string) => qs.parse(search, { ignoreQueryPrefix: true }) as unknown as T;
|
||||
|
||||
export const stringifyQuery = (query: any): string => qs.stringify(query, { arrayFormat: 'brackets' });
|
||||
Reference in New Issue
Block a user