We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b68c9 commit 763decfCopy full SHA for 763decf
src/informer.ts
@@ -30,7 +30,7 @@ export type CONNECT = typeof CONNECT;
30
export const ERROR = 'error';
31
export type ERROR = typeof ERROR;
32
33
-export interface Informer<T> {
+export interface Informer<T extends KubernetesObject> {
34
on(verb: ADD | UPDATE | DELETE | CHANGE, cb: ObjectCallback<T>): void;
35
on(verb: ERROR | CONNECT, cb: ErrorCallback): void;
36
off(verb: ADD | UPDATE | DELETE | CHANGE, cb: ObjectCallback<T>): void;
@@ -39,7 +39,7 @@ export interface Informer<T> {
39
stop(): Promise<void>;
40
}
41
42
-export function makeInformer<T>(
+export function makeInformer<T extends KubernetesObject>(
43
kubeconfig: KubeConfig,
44
path: string,
45
listPromiseFn: ListPromise<T>,
0 commit comments