From 9b86bbc2d127e71eccce727913a77a4ae384dbf3 Mon Sep 17 00:00:00 2001 From: uesyn Date: Mon, 13 Jun 2022 00:02:17 +0900 Subject: [PATCH] makeInformer returns Informer & ObjectCache --- src/informer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/informer.ts b/src/informer.ts index 4884a4039f..7da7a89088 100644 --- a/src/informer.ts +++ b/src/informer.ts @@ -1,4 +1,4 @@ -import { ListWatch } from './cache'; +import { ListWatch, ObjectCache } from './cache'; import { KubeConfig } from './config'; import { KubernetesListObject, KubernetesObject } from './types'; import { Watch } from './watch'; @@ -36,7 +36,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); }