Skip to content

Commit 6207dfa

Browse files
authored
Merge pull request #818 from uesyn/informer-cache
makeInformer returns Informer & ObjectCache
2 parents b4ccd6e + 9b86bbc commit 6207dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/informer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ListWatch } from './cache';
1+
import { ListWatch, ObjectCache } from './cache';
22
import { KubeConfig } from './config';
33
import { KubernetesListObject, KubernetesObject } from './types';
44
import { Watch } from './watch';
@@ -36,7 +36,7 @@ export function makeInformer<T>(
3636
path: string,
3737
listPromiseFn: ListPromise<T>,
3838
labelSelector?: string,
39-
): Informer<T> {
39+
): Informer<T> & ObjectCache<T> {
4040
const watch = new Watch(kubeconfig);
4141
return new ListWatch<T>(path, watch, listPromiseFn, false, labelSelector);
4242
}

0 commit comments

Comments
 (0)