Skip to content

Commit

Permalink
fix(typings): address issue with typings support for promises (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagapavan authored and silasbw committed May 16, 2018
1 parent 052e00c commit 4fc1eb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,24 @@ declare namespace KubernetesClient {
addResource(options: string | ResourceConstructor): any;
get(callback: (error: any, value: any) => void): void;
get(options: ApiRequestOptions, callback: (error: any, value: any) => void): void;
get(): Promise<any>;
get(options: ApiRequestOptions): Promise<any>;
delete(callback: (error: any, value: any) => void): void;
delete(options: ApiRequestOptions, callback: (error: any, value: any) => void): void;
delete(): Promise<any>;
delete(options: ApiRequestOptions): Promise<any>;
patch(callback: (error: any, value: any) => void): void;
patch(options: ApiRequestOptions, callback: (error: any, value: any) => void): void;
patch(): Promise<any>;
patch(options: ApiRequestOptions): Promise<any>;
post(callback: (error: any, value: any) => void): void;
post(options: ApiRequestOptions, callback: (error: any, value: any) => void): void;
post(): Promise<any>;
post(options: ApiRequestOptions): Promise<any>;
put(callback: (error: any, value: any) => void): void;
put(options: ApiRequestOptions, callback: (error: any, value: any) => void): void;
put(): Promise<any>;
put(options: ApiRequestOptions): Promise<any>;
match(expressions: Array<MatchExpression>): Resource;
matchLabels(labels: any): Resource;
getStream(options: ApiRequestOptions | string): NodeJS.ReadableStream;
Expand Down

0 comments on commit 4fc1eb0

Please sign in to comment.