Skip to content

Commit ab5c2cb

Browse files
fix: avoid type error in certain environments (#102)
1 parent 471d276 commit ab5c2cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core.ts

Lines changed: 1 addition & 1 deletion
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)