Skip to content

Commit 701091f

Browse files
fix: avoid type error in certain environments (#115)
1 parent fdcd6e2 commit 701091f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export abstract class APIClient {
395395
!headers ? {}
396396
: Symbol.iterator in headers ?
397397
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
398-
: { ...headers }
398+
: { ...(headers as any as Record<string, string>) }
399399
);
400400
}
401401

0 commit comments

Comments
 (0)