Skip to content

Commit f395e95

Browse files
fix: avoid type error in certain environments (#1413)
1 parent 16e21df commit f395e95

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
@@ -430,7 +430,7 @@ export abstract class APIClient {
430430
!headers ? {}
431431
: Symbol.iterator in headers ?
432432
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
433-
: { ...headers }
433+
: { ...(headers as any as Record<string, string>) }
434434
);
435435
}
436436

0 commit comments

Comments
 (0)