Closed
Description
The HTTPOptions type extends FetchOptions which extends RequestInit from electron-fetch
, which has a body type of Stream | string | Blob | Buffer | null
which does not include FormData
.
In js-IPFS we transform multipart requests into FormData objects in the browser, which TS then says cannot be used with the http module exported by this module, since the types in electron-fetch
say FormData is not a supported body type.