Skip to content

Commit 00a2d43

Browse files
committed
fix: allow body type in RequestOptions to be null (#637)
1 parent fa02e48 commit 00a2d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

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