Use abort-controller package to fix typing issues (#6077)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-08-22 11:18:01 -04:00
1 parent e7d9614700
commit 436aa3dcda
9 files changed
+25 -8

No files matched your search

@@ -10,6 +10,7 @@ import type { ClusterFrameContext } from "../cluster-frame-context/cluster-frame
import logger from "../../common/logger";
import type { KubeObjectStoreLoadAllParams, KubeObjectStoreSubscribeParams } from "../../common/k8s-api/kube-object.store";
import type { RequestInit } from "node-fetch";
import { AbortController } from "abort-controller";
// TODO: upgrade node-fetch once we are starting to use ES modules
type LegacyAbortSignal = NonNullable<RequestInit["signal"]>;