Skip to content

Commit aa69119

Browse files
fix: avoid type error in certain environments (#154)
1 parent 17e55c0 commit aa69119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)