Skip to content

Commit 27ed55c

Browse files
committed
add ObjectCache to the return type of makeInformer
1 parent 9f06d6d commit 27ed55c

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.js';
1+
import { ListWatch, type ObjectCache } from './cache.js';
22
import { KubeConfig } from './config.js';
33
import { KubernetesListObject, KubernetesObject } from './types.js';
44
import { Watch } from './watch.js';
@@ -31,7 +31,7 @@ export function makeInformer<T extends KubernetesObject>(
3131
path: string,
3232
listPromiseFn: ListPromise<T>,
3333
labelSelector?: string,
34-
): Informer<T> {
34+
): Informer<T> & ObjectCache<T> {
3535
const watch = new Watch(kubeconfig);
3636
return new ListWatch<T>(path, watch, listPromiseFn, false, labelSelector);
3737
}

0 commit comments

Comments
 (0)