diff --git a/src/index.ts b/src/index.ts index df45172..5d2dd77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,9 @@ import { createPaginate } from "./paginate.js"; export type { PageInfoForward, PageInfoBackward } from "./page-info.js"; export { VERSION } from "./version.js"; -type paginateGraphQLInterface = { +// Export the paginateGraphQLInterface type in order to fix TypeScript errors in downstream projects +// The inferred type of 'Octokit' cannot be named without a reference to '@octokit/core/node_modules/@octokit/graphql/types'. This is likely not portable. A type annotation is necessary. +export type paginateGraphQLInterface = { graphql: Octokit["graphql"] & { paginate: ReturnType & { iterator: ReturnType;