@@ -2,8 +2,8 @@ module Types = FetchTypes
22
33type t = Types .response = {... Types .response }
44type responseInit = Types .responseInit = {... Types .responseInit }
5- type bodyInit = Types . bodyInit
6- type headersInit = Types . headersInit
5+ type bodyInit = BodyInit . t
6+ type headersInit = HeadersInit . t
77
88/**
99[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
@@ -39,31 +39,31 @@ external fromDataView: (DataView.t, ~init: responseInit=?) => t = "Response"
3939[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
4040*/
4141@new
42- external fromBlob : (FileTypes . blob , ~init : responseInit = ?) => t = "Response"
42+ external fromBlob : (Blob . t , ~init : responseInit = ?) => t = "Response"
4343
4444/**
4545[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
4646*/
4747@new
48- external fromFile : (FileTypes . file , ~init : responseInit = ?) => t = "Response"
48+ external fromFile : (File . t , ~init : responseInit = ?) => t = "Response"
4949
5050/**
5151[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
5252*/
5353@new
54- external fromURLSearchParams : (URLTypes . urlSearchParams , ~init : responseInit = ?) => t = "Response"
54+ external fromURLSearchParams : (URLSearchParams . t , ~init : responseInit = ?) => t = "Response"
5555
5656/**
5757[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
5858*/
5959@new
60- external fromFormData : (Types . formData , ~init : responseInit = ?) => t = "Response"
60+ external fromFormData : (FormData . t , ~init : responseInit = ?) => t = "Response"
6161
6262/**
6363[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Response)
6464*/
6565@new
66- external fromReadableStream : (FileTypes . readableStream <'t >, ~init : responseInit = ?) => t = "Response"
66+ external fromReadableStream : (ReadableStream . t <'t >, ~init : responseInit = ?) => t = "Response"
6767
6868/**
6969[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
@@ -75,7 +75,7 @@ external arrayBuffer: t => promise<ArrayBuffer.t> = "arrayBuffer"
7575[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/blob)
7676*/
7777@send
78- external blob : t => promise <FileTypes . blob > = "blob"
78+ external blob : t => promise <Blob . t > = "blob"
7979
8080/**
8181[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/bytes)
@@ -87,7 +87,7 @@ external bytes: t => promise<array<int>> = "bytes"
8787[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/formData)
8888*/
8989@send
90- external formData : t => promise <Types . formData > = "formData"
90+ external formData : t => promise <FormData . t > = "formData"
9191
9292/**
9393[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/json)
0 commit comments