Skip to content

Commit

Permalink
fix: index.d.ts (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsss authored and atian25 committed Dec 9, 2019
1 parent f6a03a5 commit 67d5b1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export interface RequestOptions {
writeStream?: Writable;
/** consume the writeStream, invoke the callback after writeStream close. */
consumeWriteStream?: boolean;
/**
* The files will send with multipart/form-data format, base on formstream.
* If method not set, will use POST method by default.
*/
files?: Array<Readable | Buffer | string> | object | Readable | Buffer | string;
/** Type of request data.Could be json.If it's json, will auto set Content-Type: application/json header. */
contentType?: string;
/**
Expand Down

0 comments on commit 67d5b1c

Please sign in to comment.