mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix create-resource/store.ts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0066ea6321
commit
b2fa542d59
@ -3,16 +3,14 @@
|
|||||||
* 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 type { StorageHelper } from "../../../utils";
|
import type { DockTabStoreDependencies } from "../dock-tab-store/dock-tab.store";
|
||||||
import type { DockTabStorageState } from "../dock-tab-store/dock-tab.store";
|
|
||||||
import { DockTabStore } from "../dock-tab-store/dock-tab.store";
|
import { DockTabStore } from "../dock-tab-store/dock-tab.store";
|
||||||
|
|
||||||
interface Dependencies {
|
export interface CreateResourceTabStoreDependencies extends DockTabStoreDependencies {
|
||||||
createStorage:<T> (storageKey: string, options: DockTabStorageState<T>) => StorageHelper<DockTabStorageState<T>>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateResourceTabStore extends DockTabStore<string> {
|
export class CreateResourceTabStore extends DockTabStore<string> {
|
||||||
constructor(protected dependencies: Dependencies) {
|
constructor(protected readonly dependencies: CreateResourceTabStoreDependencies) {
|
||||||
super(dependencies, {
|
super(dependencies, {
|
||||||
storageKey: "create_resource",
|
storageKey: "create_resource",
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user