Skip to content

Commit

Permalink
Merge pull request #435 from LinusU/patch-1
Browse files Browse the repository at this point in the history
Fix error in callback signatures
  • Loading branch information
mapleeit committed Aug 27, 2019
2 parents 208c367 + a6bc2d4 commit e8827ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -23,11 +23,11 @@ declare class FormData extends stream.Readable {
getHeaders(): FormData.Headers;
submit(
params: string | FormData.SubmitOptions,
callback?: (error: Error | undefined, response: http.IncomingMessage) => void
callback?: (error: Error | null, response: http.IncomingMessage) => void
): http.ClientRequest;
getBuffer(): Buffer;
getBoundary(): string;
getLength(callback: (err: Error | undefined, length: number) => void): void;
getLength(callback: (err: Error | null, length: number) => void): void;
getLengthSync(): number;
hasKnownLength(): boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -60,7 +60,7 @@
"pkgfiles": "^2.3.0",
"pre-commit": "^1.1.3",
"request": "^2.88.0",
"rimraf": "^2.5.4",
"rimraf": "^2.7.1",
"tape": "^4.6.2",
"typescript": "^3.5.2"
},
Expand Down

0 comments on commit e8827ff

Please sign in to comment.