Skip to content

Commit 19c4959

Browse files
committed
Fix type errors
1 parent f45fe6b commit 19c4959

File tree

2 files changed

+2
-2
lines changed
  • src
    • modules/contacts/httpClient/prepareParamsForRequest
    • smsapi/httpClient

2 files changed

+2
-2
lines changed

src/modules/contacts/httpClient/prepareParamsForRequest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const prepareParamsForRequest: RequestInterceptor = (config) => {
3636
};
3737
}
3838

39-
if (body && typeof body === 'object' && !Buffer.isBuffer(body)) {
39+
if (body && typeof body === 'object' && !(body instanceof FormData)) {
4040
return {
4141
...config,
4242
body: formatKeys(body) as Record<string, string | number | boolean>,

src/smsapi/httpClient/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface RequestConfig {
66
url: string;
77
method: string;
88
headers: Record<string, string>;
9-
body?: Record<string, unknown> | string | Buffer | FormData;
9+
body?: Record<string, unknown> | string | FormData;
1010
params?: QueryParams;
1111
}
1212

0 commit comments

Comments
 (0)