mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-08 14:10:03 +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;
|
chaining?: boolean;
|
||||||
parse?: 'json' | 'buffer' | 'form';
|
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;
|
export = w;
|
||||||
|
|||||||
Reference in New Issue
Block a user