summaryrefslogtreecommitdiff
path: root/src/hooks/useQuery.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-26 01:56:04 +0300
committereug-vs <eug-vs@keemail.me>2021-03-26 01:56:04 +0300
commitef742ea9b2f246f74eae74169675a331679ad41c (patch)
tree693e92f3e6c2897038875550a12bbc1191b6d5c0 /src/hooks/useQuery.ts
parent865b41114060765308d560181f4996c0aa7a3e74 (diff)
downloadcommercel-ui-ef742ea9b2f246f74eae74169675a331679ad41c.tar.gz
feat: add strong typing where possible
Diffstat (limited to 'src/hooks/useQuery.ts')
-rw-r--r--src/hooks/useQuery.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/useQuery.ts b/src/hooks/useQuery.ts
index b2cb628..f025a46 100644
--- a/src/hooks/useQuery.ts
+++ b/src/hooks/useQuery.ts
@@ -1,6 +1,6 @@
import { useLocation } from 'react-router-dom';
-const useQuery = () => {
+const useQuery = (): Record<string, string> => {
const location = useLocation();
const searchParams = new URLSearchParams(location.search);
return Object.fromEntries(searchParams);