fix generic type error
Signed-off-by: hiba-aldalaty <hibaaldalaty@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user