From 27ed55c15d51e9c6b0ec7dd5279128b40802b11f Mon Sep 17 00:00:00 2001 From: Sachin Iyer Date: Wed, 1 Oct 2025 01:33:16 -0700 Subject: [PATCH] add ObjectCache to the return type of makeInformer --- src/informer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }