From af2be40db48662ad040ea4065eca2da7036452e2 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Mon, 4 Nov 2019 21:55:28 -0800 Subject: [PATCH] fix: adapt for @octokit/plugin-enterprise-compatibility@^1.2.1 --- .../@octokit/plugin-enterprise-compatibility/index.d.ts | 5 ----- src/github/index.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 src/@types/@octokit/plugin-enterprise-compatibility/index.d.ts diff --git a/src/@types/@octokit/plugin-enterprise-compatibility/index.d.ts b/src/@types/@octokit/plugin-enterprise-compatibility/index.d.ts deleted file mode 100644 index d7814385..00000000 --- a/src/@types/@octokit/plugin-enterprise-compatibility/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare module '@octokit/plugin-enterprise-compatibility' { - import Octokit from '@octokit/rest' - declare function plugin(octokit: Octokit, options: Octokit.Options): void - export = plugin -} \ No newline at end of file diff --git a/src/github/index.ts b/src/github/index.ts index 15011873..35ce784e 100644 --- a/src/github/index.ts +++ b/src/github/index.ts @@ -1,5 +1,5 @@ import { graphql } from '@octokit/graphql' -import enterpriseCompatibility from '@octokit/plugin-enterprise-compatibility' +import { enterpriseCompatibility } from '@octokit/plugin-enterprise-compatibility' import retryPlugin from '@octokit/plugin-retry' import throttlePlugin from '@octokit/plugin-throttling' import Octokit from '@octokit/rest'