@k8slens/extensions 5.4.1-git.c9c76cf2db.0 → 5.4.1-git.d1e4d8e681.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,13 @@ export declare class KubeEvent extends KubeObject {
34
34
  static apiBase: string;
35
35
  isWarning(): boolean;
36
36
  getSource(): string;
37
+ /**
38
+ * @deprecated This function is not reactive to changing of time. If rendering use `<ReactiveDuration />` instead
39
+ */
37
40
  getFirstSeenTime(): string;
41
+ /**
42
+ * @deprecated This function is not reactive to changing of time. If rendering use `<ReactiveDuration />` instead
43
+ */
38
44
  getLastSeenTime(): string;
39
45
  }
40
46
  declare let eventApi: KubeApi<KubeEvent>;
@@ -119,7 +119,22 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
119
119
  getResourceVersion(): string;
120
120
  getName(): string;
121
121
  getNs(): string;
122
+ /**
123
+ * This function computes the number of milliseconds from the UNIX EPOCH to the
124
+ * creation timestamp of this object.
125
+ */
126
+ getCreationTimestamp(): number;
127
+ /**
128
+ * @deprecated This function computes a new "now" on every call which might cause subtle issues if called multiple times
129
+ *
130
+ * NOTE: Generally you can use `getCreationTimestamp` instead.
131
+ */
122
132
  getTimeDiffFromNow(): number;
133
+ /**
134
+ * @deprecated This function computes a new "now" on every call might cause subtle issues if called multiple times
135
+ *
136
+ * NOTE: this function also is not reactive to updates in the current time so it should not be used for renderering
137
+ */
123
138
  getAge(humanize?: boolean, compact?: boolean, fromNow?: boolean): string | number;
124
139
  getFinalizers(): string[];
125
140
  getLabels(): string[];
@@ -21,4 +21,8 @@ export declare function zip<T, N extends number>(...sources: Tuple<T[], N>): Ite
21
21
  * @param value The value for each of the tuple entries
22
22
  */
23
23
  export declare function filled<T, L extends number>(length: L, value: T): Tuple<T, L>;
24
+ /**
25
+ * A function for converting an explicit array to a tuple but without the `readonly` typing
26
+ */
27
+ export declare function from<T extends any[]>(...args: T): [...T];
24
28
  export {};