mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Fixed query and set's param types
This commit is contained in:
Vendored
+3
-3
@@ -110,13 +110,13 @@ declare class Snekfetch extends Readable {
|
||||
static unlock(url: string, opts?: Snekfetch.SnekfetchOptions): Snekfetch;
|
||||
static unsubscribe(url: string, opts?: Snekfetch.SnekfetchOptions): Snekfetch;
|
||||
|
||||
query(name: string | { [key: string]: string | string[] }, value?: string): Snekfetch;
|
||||
query(name: string | object, value?: string): Snekfetch;
|
||||
|
||||
set(name: string | { [key: string]: string | string[] }, value?: string | string[]): Snekfetch;
|
||||
set(name: string | object, value?: string): Snekfetch;
|
||||
|
||||
attach(name: string, data: string | object | Buffer, filename?: string): Snekfetch;
|
||||
|
||||
send(data?: string|Buffer|object): Snekfetch;
|
||||
send(data?: string | Buffer | object): Snekfetch;
|
||||
|
||||
then(): Promise<Snekfetch.SnekfetchResponse>;
|
||||
then<T>(resolver: (res: Snekfetch.SnekfetchResponse) => T, rejector?: (err: Error) => any): Promise<T>;
|
||||
|
||||
Reference in New Issue
Block a user