mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
Fixed query and set's param types
This commit is contained in:
6
types/snekfetch/index.d.ts
vendored
6
types/snekfetch/index.d.ts
vendored
@@ -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