From ab1350e15b043f7d6510f8d06f89b241eac14039 Mon Sep 17 00:00:00 2001 From: Wessel T Date: Wed, 24 Apr 2019 00:34:55 +0200 Subject: [PATCH] Fix method options --- index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0cc106a..3da5c16 100644 --- a/index.d.ts +++ b/index.d.ts @@ -106,8 +106,17 @@ declare namespace w { chaining?: boolean; parse?: 'json' | 'buffer' | 'form'; } + + export interface MethodOptions { + url?: string; + method?: URLMethods; + data?: NormalObject; + headers?: KVObject; + chaining?: boolean; + parse?: 'json' | 'buffer' | 'form'; + } } -declare function w(url: string | w.URLOptions, method?: w.URLMethods | w.URLOptions): w.WumpRequest; +declare function w(url: string | w.URLOptions, method?: w.URLMethods | w.MethodOptions): w.WumpRequest; export = w;