Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4f8a36

Browse files
authoredJan 18, 2024
fix: allow body type in RequestOptions to be null (#637)
1 parent f273530 commit c4f8a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ export type RequestOptions<Req = unknown | Record<string, unknown> | Readable> =
725725
method?: HTTPMethod;
726726
path?: string;
727727
query?: Req | undefined;
728-
body?: Req | undefined;
728+
body?: Req | null | undefined;
729729
headers?: Headers | undefined;
730730

731731
maxRetries?: number;

0 commit comments

Comments
 (0)
Please sign in to comment.