Skip to content

Commit

Permalink
fix(typescript): new auth strategy options
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 30, 2020
1 parent 2f4287f commit 0c7b109
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.d.ts
Expand Up @@ -55,7 +55,8 @@ declare namespace Octokit {
| string
| { username: string; password: string; on2fa: () => Promise<string> }
| { clientId: string; clientSecret: string }
| { (): string | Promise<string> };
| { (): string | Promise<string> }
| any;
userAgent?: string;
previews?: string[];
baseUrl?: string;
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/templates/index.d.ts.tpl
Expand Up @@ -46,7 +46,7 @@ declare namespace Octokit {

export interface Options {
authStrategy?: any;
auth?: string | { username: string; password: string; on2fa: () => Promise<string> } | { clientId: string; clientSecret: string; } | { (): (string | Promise<string>) };
auth?: string | { username: string; password: string; on2fa: () => Promise<string> } | { clientId: string; clientSecret: string; } | { (): (string | Promise<string>) } | any;
userAgent?: string;
previews?: string[];
baseUrl?: string;
Expand Down

0 comments on commit 0c7b109

Please sign in to comment.