From 0e250736ca12b5544f682e7570752ce78b31b5a6 Mon Sep 17 00:00:00 2001 From: James Bourne Date: Tue, 12 Mar 2024 21:20:42 +0100 Subject: [PATCH] chore: tidy noise from any types --- src/interceptor.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/interceptor.ts b/src/interceptor.ts index c3eac619..1c57256e 100644 --- a/src/interceptor.ts +++ b/src/interceptor.ts @@ -70,8 +70,8 @@ export type InternalAxiosHeaders = Record< Record >; -const removeUndefined = (obj: Record) => { - const newObj: Record = {}; +const removeUndefined = (obj: Record) => { + const newObj: Record = {}; for (const [key, value] of Object.entries(obj)) { if (value !== undefined) { @@ -94,6 +94,8 @@ const removeUndefined = (obj: Record) => { * @param options The options to be used when signing a request * @param credentials Credentials to be used to sign the request */ +// this would be a breaking change to the API +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const aws4Interceptor = ({ instance = axios, credentials,