chore: LocationState => unknown

Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel authored and Sebastian Malton committed 2023-04-25 17:38:02 -04:00
1 parent f783c1d73e
commit 3f882276ac
2 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -3,10 +3,10 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
import type { History, LocationState } from "history";
import type { History } from "history";
import { createBrowserHistory } from "history";
export const historyInjectionToken = getInjectionToken<History<LocationState>>({
export const historyInjectionToken = getInjectionToken<History<unknown>>({
id: "history-injection-token",
});
@@ -6,9 +6,8 @@ import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
import { createObservableHistory, ObservableHistory } from "mobx-observable-history";
import { searchParamsOptions } from "./search-params";
import { historyInjectable } from "./history.injectable";
import type { LocationState } from "history";
export const observableHistoryInjectionToken = getInjectionToken<ObservableHistory<LocationState>>({
export const observableHistoryInjectionToken = getInjectionToken<ObservableHistory<unknown>>({
id: "observable-history-injection-token",
});