Skip to content

Commit

Permalink
Merge pull request #133 from Portkey-AI/fix/typeScript-TS2698
Browse files Browse the repository at this point in the history
Spread Operator Issue: #130
  • Loading branch information
csgulati09 authored Nov 7, 2024
2 parents 931f905 + ce60091 commit 792ca65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
if (contentType?.includes('application/json')) {
const headers = defaultParseHeaders(props);
const json = {
...(await response.json()),
...(await response.json() as any),
getHeaders: () => headers,
};

Expand Down

0 comments on commit 792ca65

Please sign in to comment.