Skip to content

Commit

Permalink
fix(typescript): resolve TypeScript incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 16, 2020
1 parent 65a6253 commit 5b18529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions src/auth.ts
Original file line number Diff line number Diff line change
@@ -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<Authentication> {
if (options.type === "app") {
Expand Down
6 changes: 3 additions & 3 deletions src/get-installation-authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InstallationAccessTokenAuthentication> {
Expand Down

0 comments on commit 5b18529

Please sign in to comment.