1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: LocationState => unknown

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

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",
});

View File

@ -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",
});