mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
db899cf3eb
commit
37da7d00eb
2 files changed
+3
-1
No files matched your search
@@ -655,7 +655,7 @@ export class KubeApi<T extends KubeObject> {
|
||||
if (event.type === "ERROR" && event.object.kind === "Status") {
|
||||
errorReceived = true;
|
||||
|
||||
return callback(null, new KubeStatus(event.object as any));
|
||||
return callback(null, new KubeStatus(event.object));
|
||||
}
|
||||
|
||||
this.modifyWatchEvent(event);
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
*/
|
||||
|
||||
import type { KubeJsonApiData } from "./kube-json-api";
|
||||
import type { KubeStatusData } from "./kube-object";
|
||||
|
||||
export type IKubeWatchEvent<T extends KubeJsonApiData> = {
|
||||
type: "ADDED" | "MODIFIED" | "DELETED";
|
||||
object: T;
|
||||
} | {
|
||||
type: "ERROR";
|
||||
object: KubeStatusData;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user