mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Allow to pass KubeObjectStore.api via constructor (#3596)
* allow to pass KubeObjectStore.api via constructor Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * cleanup Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * remove throw for backward compat reasons Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
443186d4f5
commit
be6df7d25a
2 files changed
+5
-6
No files matched your search
@@ -24,10 +24,7 @@ import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
||||
|
||||
export class CRDResourceStore<K extends KubeObject> extends KubeObjectStore<K> {
|
||||
api: KubeApi<K>;
|
||||
|
||||
constructor(api: KubeApi<K>) {
|
||||
super();
|
||||
this.api = api;
|
||||
super(api);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user