We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f19786 commit 9841aafCopy full SHA for 9841aaf
src/index.ts
@@ -3,8 +3,15 @@ import { createIterator } from "./iterator.js";
3
import { createPaginate } from "./paginate.js";
4
export type { PageInfoForward, PageInfoBackward } from "./page-info.js";
5
6
-export function paginateGraphQL(octokit: Octokit) {
7
- octokit.graphql;
+type paginateGraphQLInterface = {
+ graphql: Octokit["graphql"] & {
8
+ paginate: ReturnType<typeof createPaginate> & {
9
+ iterator: ReturnType<typeof createIterator>;
10
+ };
11
12
+};
13
+
14
+export function paginateGraphQL(octokit: Octokit): paginateGraphQLInterface {
15
return {
16
graphql: Object.assign(octokit.graphql, {
17
paginate: Object.assign(createPaginate(octokit), {
0 commit comments