DefinitelyTyped/types/request
Eitan Levi 4fe80e3fcc [request] Specify types allowed for Multipart body (#38190)
The request library allows anything to be put in a Multipart body as
long as it can be passed to `Buffer.from()`: https://github.com/request/request/blob/master/lib/multipart.js#L74

However the current implementation allows only `string` to be used as
the multipart body. In my use-case I needed to pass a `Buffer` instance
directly.

This change defines a type alias for `MultipartBody` that includes
`string`, `Buffer`, `ArrayBuffer` or `UInt8Array`.
2019-09-08 17:24:44 -07:00
..
index.d.ts
package.json
request-tests.ts
tsconfig.json
tslint.json