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:
parent
f783c1d73e
commit
3f882276ac
@ -3,10 +3,10 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
||||||
import type { History, LocationState } from "history";
|
import type { History } from "history";
|
||||||
import { createBrowserHistory } from "history";
|
import { createBrowserHistory } from "history";
|
||||||
|
|
||||||
export const historyInjectionToken = getInjectionToken<History<LocationState>>({
|
export const historyInjectionToken = getInjectionToken<History<unknown>>({
|
||||||
id: "history-injection-token",
|
id: "history-injection-token",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -6,9 +6,8 @@ import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
|||||||
import { createObservableHistory, ObservableHistory } from "mobx-observable-history";
|
import { createObservableHistory, ObservableHistory } from "mobx-observable-history";
|
||||||
import { searchParamsOptions } from "./search-params";
|
import { searchParamsOptions } from "./search-params";
|
||||||
import { historyInjectable } from "./history.injectable";
|
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",
|
id: "observable-history-injection-token",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user