From ef742ea9b2f246f74eae74169675a331679ad41c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 01:56:04 +0300 Subject: feat: add strong typing where possible --- src/hooks/useQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hooks/useQuery.ts') 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 => { const location = useLocation(); const searchParams = new URLSearchParams(location.search); return Object.fromEntries(searchParams); -- cgit v1.2.3