fix generic type error

Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
hiba-aldalaty
2021-12-08 13:11:22 +00:00
parent 9d2b6e0c9c
commit 67688f4601
@@ -14,14 +14,11 @@
* limitations under the License.
*/
import { Location, State, Path } from 'history';
import { Location, Path } from 'history';
import { isEqual, isMatch } from 'lodash';
import qs from 'qs';
export function isLocationMatch(
currentLocation: Location<State>,
toLocation: Path,
) {
export function isLocationMatch(currentLocation: Location, toLocation: Path) {
const toDecodedSearch = new URLSearchParams(toLocation.search).toString();
const toQueryParameters = qs.parse(toDecodedSearch);