mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-07 19:59:00 +08:00
restify: Fix error in typescript@next (#17061)
This commit is contained in:
3
types/restify/index.d.ts
vendored
3
types/restify/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user