Skip to content

Commit 0d3addd

Browse files
fix: avoid type error in certain environments (#1413)
1 parent adb4733 commit 0d3addd

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
@@ -409,7 +409,7 @@ export abstract class APIClient {
409409
!headers ? {}
410410
: Symbol.iterator in headers ?
411411
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
412-
: { ...headers }
412+
: { ...(headers as any as Record<string, string>) }
413413
);
414414
}
415415

0 commit comments

Comments
 (0)