Skip to content

Commit

Permalink
Merge pull request #503 from aoberoi/oauth-argument-types
Browse files Browse the repository at this point in the history
more tightly specifies OAuthAccessArguments and OAuthTokenArguments
  • Loading branch information
aoberoi authored Mar 14, 2018
2 parents 945439a + 501b0af commit 6902c4e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,19 @@ export type MPIMRepliesArguments = TokenOverridable & {};
/*
* `oauth.*`
*/
export type OAuthAccessArguments = TokenOverridable & {};
export type OAuthTokenArguments = TokenOverridable & {};
export type OAuthAccessArguments = {
client_id: string;
client_secret: string;
code: string;
redirect_uri?: string;
};
export type OAuthTokenArguments = {
client_id: string;
client_secret: string;
code: string;
redirect_uri?: string;
single_channel?: '0' | '1';
};

/*
* `pins.*`
Expand Down

0 comments on commit 6902c4e

Please sign in to comment.