Fixed types.

This commit is contained in:
Mike Cao 2023-11-13 21:58:23 -08:00
parent 8775d696b8
commit a78d11e352
5 changed files with 74 additions and 64 deletions

View file

@ -17,7 +17,7 @@ export function useNavigation() {
return obj;
}, [params]);
function makeUrl(params, reset) {
function makeUrl(params: any, reset?: boolean) {
return reset ? pathname : buildUrl(pathname, { ...query, ...params });
}