diff --git a/index.d.ts b/index.d.ts index 3927d33b..2014dc82 100644 --- a/index.d.ts +++ b/index.d.ts @@ -55,7 +55,8 @@ declare namespace Octokit { | string | { username: string; password: string; on2fa: () => Promise } | { clientId: string; clientSecret: string } - | { (): string | Promise }; + | { (): string | Promise } + | any; userAgent?: string; previews?: string[]; baseUrl?: string; diff --git a/scripts/update-endpoints/templates/index.d.ts.tpl b/scripts/update-endpoints/templates/index.d.ts.tpl index b2a8919a..d2e28ba2 100644 --- a/scripts/update-endpoints/templates/index.d.ts.tpl +++ b/scripts/update-endpoints/templates/index.d.ts.tpl @@ -46,7 +46,7 @@ declare namespace Octokit { export interface Options { authStrategy?: any; - auth?: string | { username: string; password: string; on2fa: () => Promise } | { clientId: string; clientSecret: string; } | { (): (string | Promise) }; + auth?: string | { username: string; password: string; on2fa: () => Promise } | { clientId: string; clientSecret: string; } | { (): (string | Promise) } | any; userAgent?: string; previews?: string[]; baseUrl?: string;