We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef15c6 commit f6ad637Copy full SHA for f6ad637
test/types/fetch.test-d.ts
@@ -31,6 +31,7 @@ const requestInit2: RequestInit = {
31
const requestInit3: RequestInit = {}
32
// Test assignment. See https://github.com/whatwg/fetch/issues/1445
33
requestInit3.credentials = 'include'
34
+const requestInit4: RequestInit = { body: null }
35
36
declare const request: Request
37
declare const headers: Headers
types/fetch.d.ts
@@ -122,7 +122,7 @@ export interface RequestInit {
122
method?: string
123
keepalive?: boolean
124
headers?: HeadersInit
125
- body?: BodyInit
+ body?: BodyInit | null
126
redirect?: RequestRedirect
127
integrity?: string
128
signal?: AbortSignal | null
0 commit comments