Skip to content

Commit

Permalink
Add constructor options to TypeScript defs
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottsj committed Aug 9, 2019
1 parent 905f173 commit 5a3e2cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Expand Up @@ -9,7 +9,13 @@ import * as http from 'http';

export = FormData;

interface Options {
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 5a3e2cf

Please sign in to comment.