Skip to content

Commit 0c7b109

Browse files
committedJan 30, 2020
fix(typescript): new auth strategy options
1 parent 2f4287f commit 0c7b109

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ declare namespace Octokit {
5555
| string
5656
| { username: string; password: string; on2fa: () => Promise<string> }
5757
| { clientId: string; clientSecret: string }
58-
| { (): string | Promise<string> };
58+
| { (): string | Promise<string> }
59+
| any;
5960
userAgent?: string;
6061
previews?: string[];
6162
baseUrl?: string;

‎scripts/update-endpoints/templates/index.d.ts.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ declare namespace Octokit {
4646

4747
export interface Options {
4848
authStrategy?: any;
49-
auth?: string | { username: string; password: string; on2fa: () => Promise<string> } | { clientId: string; clientSecret: string; } | { (): (string | Promise<string>) };
49+
auth?: string | { username: string; password: string; on2fa: () => Promise<string> } | { clientId: string; clientSecret: string; } | { (): (string | Promise<string>) } | any;
5050
userAgent?: string;
5151
previews?: string[];
5252
baseUrl?: string;

0 commit comments

Comments
 (0)
Please sign in to comment.