use named imports

This commit is contained in:
Pavel Mineev
2021-05-06 15:55:46 -05:00
committed by Umputun
parent 123cd53c09
commit d8058c6576
69 changed files with 168 additions and 203 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/** converts window.location.search into object */
export default function parseQuery<T extends {}>(search: string = window.location.search): T {
export function parseQuery<T extends {}>(search: string = window.location.search): T {
const params: { [key: string]: string } = {};
new URLSearchParams(search).forEach((value: string, key: string) => {
params[key] = value;