mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-05 23:25:42 +02:00
Update index.d.ts
This commit is contained in:
12
index.d.ts
vendored
12
index.d.ts
vendored
@@ -32,8 +32,10 @@ declare module 'wumpfetch' {
|
||||
timeoutTime: number;
|
||||
rHeaders: { [x: string]: string; }
|
||||
coreOptions: { [x: string]: any };
|
||||
body, json: any;
|
||||
data, form: any;
|
||||
body: any;
|
||||
json: any;
|
||||
data: any;
|
||||
form: any;
|
||||
}
|
||||
constructor(url: string | URL | ReqOptions, method?: string | ReqOptions);
|
||||
public body(data: any, sendAs?: 'json' | 'form' | 'buffer'): this;
|
||||
@@ -74,7 +76,9 @@ declare module 'wumpfetch' {
|
||||
timeout?: number;
|
||||
headers?: { [x: string]: string };
|
||||
coreOptions?: { [x: string]: any };
|
||||
body?, json?: any;
|
||||
data?, form?: any;
|
||||
body?: any;
|
||||
json?: any;
|
||||
data?: any;
|
||||
form?: any;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user