Skip to content

Commit

Permalink
docs: add comment to export
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 30, 2024
1 parent e8f3d33 commit 5596fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { createPaginate } from "./paginate.js";
export type { PageInfoForward, PageInfoBackward } from "./page-info.js";
export { VERSION } from "./version.js";

// 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<typeof createPaginate> & {
Expand Down

0 comments on commit 5596fa6

Please sign in to comment.