From 813a3c7490049f6e66f63969a213aa902addb7a3 Mon Sep 17 00:00:00 2001 From: Shiak1 Date: Wed, 16 Sep 2015 19:07:05 -0400 Subject: [PATCH 1/2] Added formData to Options interface Fix issue #5787 --- request/request.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/request/request.d.ts b/request/request.d.ts index e261d36152..5332aa90a0 100644 --- a/request/request.d.ts +++ b/request/request.d.ts @@ -62,6 +62,7 @@ declare module 'request' { uri?: string; callback?: (error: any, response: http.IncomingMessage, body: any) => void; jar?: any; // CookieJar + formData: any; // Object form?: any; // Object or string auth?: AuthOptions; oauth?: OAuthOptions; From 48c9d444f3b51ca8078b01e835a94ad88ffb0102 Mon Sep 17 00:00:00 2001 From: Shiak1 Date: Sun, 20 Sep 2015 13:37:55 -0400 Subject: [PATCH 2/2] Update request.d.ts Make formData optional. --- request/request.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request/request.d.ts b/request/request.d.ts index 5332aa90a0..7fb7e9470d 100644 --- a/request/request.d.ts +++ b/request/request.d.ts @@ -62,7 +62,7 @@ declare module 'request' { uri?: string; callback?: (error: any, response: http.IncomingMessage, body: any) => void; jar?: any; // CookieJar - formData: any; // Object + formData?: any; // Object form?: any; // Object or string auth?: AuthOptions; oauth?: OAuthOptions;