From 5b185298f81161637e4844f3653d0ee7f456ca26 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Wed, 16 Sep 2020 11:21:05 -0700 Subject: [PATCH] fix(typescript): resolve TypeScript incompatibility --- src/auth.ts | 8 ++------ src/get-installation-authentication.ts | 6 +++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index f24205db3..c9180ab12 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,14 +1,10 @@ -import { - AuthOptions, - StrategyOptionsWithDefaults, - Authentication, -} from "./types"; +import { AuthOptions, Authentication, State } from "./types"; import { getAppAuthentication } from "./get-app-authentication"; import { getInstallationAuthentication } from "./get-installation-authentication"; import { getOAuthAuthentication } from "./get-oauth-authentication"; export async function auth( - state: StrategyOptionsWithDefaults, + state: State, options: AuthOptions ): Promise { if (options.type === "app") { diff --git a/src/get-installation-authentication.ts b/src/get-installation-authentication.ts index 3b187caa9..f56d6b51b 100644 --- a/src/get-installation-authentication.ts +++ b/src/get-installation-authentication.ts @@ -2,14 +2,14 @@ import { get, set } from "./cache"; import { getAppAuthentication } from "./get-app-authentication"; import { toTokenAuthentication } from "./to-token-authentication"; import { - RequestInterface, InstallationAuthOptions, - StrategyOptionsWithDefaults, InstallationAccessTokenAuthentication, + RequestInterface, + State, } from "./types"; export async function getInstallationAuthentication( - state: StrategyOptionsWithDefaults, + state: State, options: InstallationAuthOptions, customRequest?: RequestInterface ): Promise {