diff --git a/src/informer.ts b/src/informer.ts index fbf188004d..eb67bbd8db 100644 --- a/src/informer.ts +++ b/src/informer.ts @@ -1,4 +1,4 @@ -import { ListWatch } from './cache.js'; +import { ListWatch, type ObjectCache } from './cache.js'; import { KubeConfig } from './config.js'; import { KubernetesListObject, KubernetesObject } from './types.js'; import { Watch } from './watch.js'; @@ -31,7 +31,7 @@ export function makeInformer( path: string, listPromiseFn: ListPromise, labelSelector?: string, -): Informer { +): Informer & ObjectCache { const watch = new Watch(kubeconfig); return new ListWatch(path, watch, listPromiseFn, false, labelSelector); }