From ba4c75612e34da08009fef8fe003aed30dd3cd6a Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 13 Apr 2019 21:09:32 +0100 Subject: [PATCH] improve form & body functions with conditional types --- types/got/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/got/index.d.ts b/types/got/index.d.ts index 893366846b..5e213ce9db 100644 --- a/types/got/index.d.ts +++ b/types/got/index.d.ts @@ -6,7 +6,7 @@ // Stijn Van Nieuwenhuyse // Matthew Bull // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// @@ -95,12 +95,12 @@ declare namespace got { interface GotFormFn { (url: GotUrl): GotPromise; - (url: GotUrl, options: GotFormOptions): GotPromise; + (url: GotUrl, options: GotFormOptions): GotPromise; } interface GotBodyFn { (url: GotUrl): GotPromise; - (url: GotUrl, options: GotBodyOptions): GotPromise; + (url: GotUrl, options: GotBodyOptions): GotPromise; } type GotInstance = T &