From f1ef855e4cc02a07374584754d341622cec9b81c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Mar 2025 12:11:13 +0000 Subject: [PATCH] fix: avoid type error in certain environments --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index c98a664bb..30257ed93 100644 --- a/src/core.ts +++ b/src/core.ts @@ -409,7 +409,7 @@ export abstract class APIClient { !headers ? {} : Symbol.iterator in headers ? Object.fromEntries(Array.from(headers as Iterable).map((header) => [...header])) - : { ...headers } + : { ...(headers as any as Record) } ); }