From 90ccae007e185274f5dae2e6863005ace1dc99af Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 8 Jun 2017 15:13:41 -0700 Subject: [PATCH] restify: Fix error in typescript@next (#17061) --- types/restify/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/restify/index.d.ts b/types/restify/index.d.ts index 5f7e0ccb21..a7781f933c 100644 --- a/types/restify/index.d.ts +++ b/types/restify/index.d.ts @@ -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 {