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

Stop exporting dependencies for not being required

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-01-31 12:41:20 +02:00 committed by Sebastian Malton
parent b7297e28b2
commit de890fa0e7
2 changed files with 3 additions and 3 deletions

View File

@ -3,12 +3,12 @@
* 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, lifecycleEnum } from "@ogre-tools/injectable"; import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { DockTabStore, DockTabStoreDependencies, DockTabStoreOptions } from "./dock-tab.store"; import { DockTabStore, DockTabStoreOptions } from "./dock-tab.store";
import createStorageInjectable from "../../../utils/create-storage/create-storage.injectable"; import createStorageInjectable from "../../../utils/create-storage/create-storage.injectable";
const createDockTabStoreInjectable = getInjectable({ const createDockTabStoreInjectable = getInjectable({
instantiate: (di) => { instantiate: (di) => {
const dependencies: DockTabStoreDependencies = { const dependencies = {
createStorage: di.inject(createStorageInjectable), createStorage: di.inject(createStorageInjectable),
}; };

View File

@ -14,7 +14,7 @@ export interface DockTabStoreOptions {
export type DockTabStorageState<T> = Record<TabId, T>; export type DockTabStorageState<T> = Record<TabId, T>;
export interface DockTabStoreDependencies { interface DockTabStoreDependencies {
createStorage: <T>(storageKey: string, options: DockTabStorageState<T>) => StorageHelper<DockTabStorageState<T>> createStorage: <T>(storageKey: string, options: DockTabStorageState<T>) => StorageHelper<DockTabStorageState<T>>
} }