Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Tweak type declaration to match JS API (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkka authored and blakeembrey committed Jan 24, 2017
1 parent 9059d36 commit f07cf6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare class ClientOAuth2 {
credentials: ClientOAuth2.CredentialsFlow;
jwt: ClientOAuth2.JwtBearerFlow;

constructor(options: ClientOAuth2.Options, request: ClientOAuth2.Request);
constructor(options: ClientOAuth2.Options, request?: ClientOAuth2.Request);

createToken(data: ClientOAuth2.Data): ClientOAuth2.Token;
createToken(accessToken: string, data: ClientOAuth2.Data): ClientOAuth2.Token;
Expand All @@ -24,7 +24,7 @@ declare namespace ClientOAuth2 {
accessTokenUri?: string
authorizationUri?: string
redirectUri?: string
scopes?: string
scopes?: string[]
state?: string
body?: {
[key: string]: string | string[];
Expand Down

0 comments on commit f07cf6a

Please sign in to comment.