Skip to content

Commit

Permalink
fixes #673 - allow non-object array in body
Browse files Browse the repository at this point in the history
  • Loading branch information
mlankamp committed Jun 13, 2024
1 parent d937233 commit da31b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-chairs-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hey-api/client-fetch': minor
---

fixes #673 - allow non-object array in body
3 changes: 2 additions & 1 deletion packages/client-fetch/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export interface Config
body?:
| RequestInit['body']
| Record<string, unknown>
| Array<Record<string, unknown>>;
| Array<Record<string, unknown>>
| Array<unknown>;
/**
* A function for serializing request body parameter. By default,
* {@link JSON.stringify()} will be used.
Expand Down

0 comments on commit da31b74

Please sign in to comment.