Skip to content

Commit

Permalink
Merge pull request #437 from elliottsj/ts-options
Browse files Browse the repository at this point in the history
Add constructor options to TypeScript defs
  • Loading branch information
mapleeit committed Aug 15, 2019
2 parents 905f173 + 4d41a32 commit a70ef2a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Expand Up @@ -9,7 +9,16 @@ import * as http from 'http';

export = FormData;

interface Options {
writable?: boolean;
readable?: boolean;
dataSize?: number;
maxDataSize?: number;
pauseStreams?: boolean;
}

declare class FormData extends stream.Readable {
constructor(options?: Options);
append(key: string, value: any, options?: FormData.AppendOptions | string): void;
getHeaders(): FormData.Headers;
submit(
Expand Down

0 comments on commit a70ef2a

Please sign in to comment.