Skip to content

Commit 90f1218

Browse files
authored
fix: use type imports for @octokit/core (#174)
`@octokit/core` is not a direct runtime dependency of this module, it is only used in tests and for the types
1 parent cbdebb9 commit 90f1218

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Octokit } from "@octokit/core";
1+
import type { Octokit } from "@octokit/core";
22
import { createIterator } from "./iterator";
33
import { createPaginate } from "./paginate";
44
export type { PageInfoForward, PageInfoBackward } from "./page-info";

src/iterator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { extractPageInfos } from "./extract-page-info";
2-
import { Octokit } from "@octokit/core";
2+
import type { Octokit } from "@octokit/core";
33
import { getCursorFrom, hasAnotherPage } from "./page-info";
44
import { MissingCursorChange } from "./errors";
55

src/paginate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Octokit } from "@octokit/core";
1+
import type { Octokit } from "@octokit/core";
22
import { mergeResponses } from "./merge-responses";
33
import { createIterator } from "./iterator";
44

0 commit comments

Comments
 (0)