From 0c7b1097812ad1d33b75e948b711fab3b1146b85 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Wed, 29 Jan 2020 09:25:39 -0800 Subject: [PATCH] fix(typescript): new auth strategy options --- index.d.ts | 3 ++- scripts/update-endpoints/templates/index.d.ts.tpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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;