@@ -309,7 +309,7 @@ module RequestInit = {
309
309
310
310
@obj
311
311
external make : (
312
- ~_method : string = ?,
312
+ @ as ( "method" ) ~_method : string = ?,
313
313
~headers : headersInit = ?,
314
314
~body : bodyInit = ?,
315
315
~referrer : string = ?,
@@ -336,7 +336,7 @@ module RequestInit = {
336
336
~integrity : string = "" ,
337
337
~keepalive : option <bool >= ?,
338
338
~signal : option <signal >= ?,
339
- ()
339
+ (),
340
340
) =>
341
341
make (
342
342
~_method = ?map (encodeRequestMethod , method_ ),
@@ -351,7 +351,7 @@ module RequestInit = {
351
351
~integrity ,
352
352
~keepalive ?,
353
353
~signal ?,
354
- ()
354
+ (),
355
355
)
356
356
}
357
357
@@ -403,7 +403,7 @@ module ResponseInit = {
403
403
~status : option <int >= ?,
404
404
~statusText : option <string >= ?,
405
405
~headers : option <headersInit >= ?,
406
- ()
406
+ (),
407
407
) => make (~status ?, ~statusText ?, ~headers ?, ())
408
408
}
409
409
@@ -436,4 +436,4 @@ module Response = {
436
436
@val external fetch : string => Js .Promise .t <response > = "fetch"
437
437
@val external fetchWithInit : (string , requestInit ) => Js .Promise .t <response > = "fetch"
438
438
@val external fetchWithRequest : request => Js .Promise .t <response > = "fetch"
439
- @val external fetchWithRequestInit : (request , requestInit ) => Js .Promise .t <response > = "fetch"
439
+ @val external fetchWithRequestInit : (request , requestInit ) => Js .Promise .t <response > = "fetch"
0 commit comments