restify: Fix error in typescript@next (#17061)

This commit is contained in:
Andy
2017-06-08 15:13:41 -07:00
committed by Mohamed Hegazy
parent e8aac973ef
commit 90ccae007e

View File

@@ -483,13 +483,14 @@ export interface Client {
basicAuth(username: string, password: string): any;
}
export interface HttpClient extends Client {
export interface HttpClient {
get(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
head(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
post(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
put(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
patch(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
del(opts?: string | { path?: string; [name: string]: any }, callback?: (err: any, req: Request) => void): any;
basicAuth(username: string, password: string): any;
}
export interface ThrottleOptions {