Skip to content

Commit

Permalink
chore: fixed octokit type
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 27, 2024
1 parent 5617519 commit 91f08b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Octokit } from "@octokit/rest";
import { retry } from "@octokit/plugin-retry";
import program from "./parser/command-line";
import configuration from "./configuration/config-reader";
import { paginateGraphQL, paginateGraphQLInterface } from "@octokit/plugin-paginate-graphql";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";

const customOctokit = Octokit.plugin(retry, paginateGraphQL);

let octokitInstance: (Octokit & paginateGraphQLInterface) | null = null;
let octokitInstance: InstanceType<typeof customOctokit> | null = null;

function getOctokitInstance() {
if (!octokitInstance) {
Expand Down

0 comments on commit 91f08b2

Please sign in to comment.