Skip to content

Commit 208fdaf

Browse files
fix: avoid type error in certain environments (#723)
1 parent 9f3a54e commit 208fdaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export abstract class APIClient {
441441
!headers ? {}
442442
: Symbol.iterator in headers ?
443443
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
444-
: { ...headers }
444+
: { ...(headers as any as Record<string, string>) }
445445
);
446446
}
447447

0 commit comments

Comments
 (0)