Skip to content

Commit

Permalink
fix(ts): fix getPolicy promise return signature (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
AVaksman authored and JustinBeckwith committed Mar 1, 2019
1 parent 613c26d commit 60489bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class IAM {
this.id = id;
}

getPolicy(gaxOpts?: CallOptions): Promise<GetPolicyCallback>;
getPolicy(gaxOpts?: CallOptions): Promise<GetPolicyResponse>;
getPolicy(callback: GetPolicyCallback): void;
getPolicy(gaxOpts: CallOptions, callback: GetPolicyCallback): void;
/**
Expand Down Expand Up @@ -211,7 +211,7 @@ export class IAM {
*/
getPolicy(
gaxOptsOrCallback?: CallOptions|GetPolicyCallback,
callback?: GetPolicyCallback): Promise<GetPolicyCallback>|void {
callback?: GetPolicyCallback): Promise<GetPolicyResponse>|void {
const gaxOpts =
typeof gaxOptsOrCallback === 'object' ? gaxOptsOrCallback : {};
callback =
Expand Down

0 comments on commit 60489bf

Please sign in to comment.