Skip to content

Commit

Permalink
Merge pull request #163 from mwgamble/ts_types_update
Browse files Browse the repository at this point in the history
Add missing async methods to Typescript type definitions
  • Loading branch information
jimmyjames authored Aug 26, 2020
2 parents 44beb3b + a36ab22 commit ae96971
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ declare namespace JwksRsa {
constructor(options: ClientOptions);

getKeys(cb: (err: Error | null, keys: unknown) => void): void;
getKeysAsync(): Promise<unknown>;
getSigningKeys(cb: (err: Error | null, keys: SigningKey[]) => void): void;
getSigningKey: (kid: string, cb: (err: Error | null, key: SigningKey) => void) => void;
getSigningKeysAsync(): Promise<SigningKey[]>;
getSigningKey(kid: string, cb: (err: Error | null, key: SigningKey) => void): void;
getSigningKeyAsync(kid: string): Promise<SigningKey>;
}

interface Headers {
Expand Down Expand Up @@ -115,4 +118,4 @@ declare namespace JwksRsa {
}
}

export = JwksRsa;
export = JwksRsa;

0 comments on commit ae96971

Please sign in to comment.