mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-05 23:25:42 +02:00
Fix method options
This commit is contained in:
11
index.d.ts
vendored
11
index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user