Skip to content

Commit

Permalink
fix: use type imports for @octokit/core (#174)
Browse files Browse the repository at this point in the history
`@octokit/core` is not a direct runtime dependency of this module, it is only used in tests and for the types
  • Loading branch information
wolfy1339 authored Mar 4, 2024
1 parent cbdebb9 commit 90f1218
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Octokit } from "@octokit/core";
import type { Octokit } from "@octokit/core";
import { createIterator } from "./iterator";
import { createPaginate } from "./paginate";
export type { PageInfoForward, PageInfoBackward } from "./page-info";
Expand Down
2 changes: 1 addition & 1 deletion src/iterator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { extractPageInfos } from "./extract-page-info";
import { Octokit } from "@octokit/core";
import type { Octokit } from "@octokit/core";
import { getCursorFrom, hasAnotherPage } from "./page-info";
import { MissingCursorChange } from "./errors";

Expand Down
2 changes: 1 addition & 1 deletion src/paginate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Octokit } from "@octokit/core";
import type { Octokit } from "@octokit/core";
import { mergeResponses } from "./merge-responses";
import { createIterator } from "./iterator";

Expand Down

0 comments on commit 90f1218

Please sign in to comment.