Enabled recommended-requiring-type-checking as result type fixes provided (#632)

* Enabled recommended-requiring-type-checking

* from .cjs to .js

* check

* check

* check

* check

* A lot of types aligned and refactored

* More strict types

* Improvement

* Improvements

* Improvements

* Fixed routs

* Fixed import types
This commit is contained in:
yuri-sakharov
2025-12-01 10:19:44 +02:00
committed by GitHub
parent 362f881b47
commit f2eb91bc02
75 changed files with 668 additions and 481 deletions

View File

@@ -12,19 +12,14 @@ const useNavigateWithSearchParams = () => {
const { context } = useParams();
const { search } = useLocation();
const navigateWithSearchParams = (
url: string,
...restArgs: NavigateOptions[]
) => {
return async (url: string, ...restArgs: NavigateOptions[]) => {
let prefixedUrl = url;
if (!clusterMode) {
prefixedUrl = `/${encodeURIComponent(context ?? "")}${url}`;
}
navigate(`${prefixedUrl}${search}`, ...restArgs);
await navigate(`${prefixedUrl}${search}`, ...restArgs);
};
return navigateWithSearchParams;
};
export default useNavigateWithSearchParams;