Skip to content

Commit

Permalink
chore: tidy noise from any types
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbourne committed Mar 12, 2024
1 parent 8c4782d commit 0e25073
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export type InternalAxiosHeaders = Record<
Record<string, string>
>;

const removeUndefined = (obj: Record<string, any>) => {
const newObj: Record<string, any> = {};
const removeUndefined = <T>(obj: Record<string, T>) => {
const newObj: Record<string, T> = {};

for (const [key, value] of Object.entries(obj)) {
if (value !== undefined) {
Expand All @@ -94,6 +94,8 @@ const removeUndefined = (obj: Record<string, any>) => {
* @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 = <D = any>({
instance = axios,
credentials,
Expand Down

0 comments on commit 0e25073

Please sign in to comment.