From 90f121843a933a82ff3fa435dd8938caf7a6fad9 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:10:16 -0500 Subject: [PATCH] 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 --- src/index.ts | 2 +- src/iterator.ts | 2 +- src/paginate.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index cad271b..85f088f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"; diff --git a/src/iterator.ts b/src/iterator.ts index fdd9f4b..7692feb 100644 --- a/src/iterator.ts +++ b/src/iterator.ts @@ -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"; diff --git a/src/paginate.ts b/src/paginate.ts index 5c4f930..01d0452 100644 --- a/src/paginate.ts +++ b/src/paginate.ts @@ -1,4 +1,4 @@ -import { Octokit } from "@octokit/core"; +import type { Octokit } from "@octokit/core"; import { mergeResponses } from "./merge-responses"; import { createIterator } from "./iterator";