Open tenjaa opened 2 years ago
Thank you for this!
You can do the following to get the returned interface type:
import { paginateGraphQL } from "@octokit/paginate-graphql";
import { Octokit } from "@octokit/core";
type PaginateGraphQLOctokit = Octokit & ReturnType<paginateGraphQL>;
What’s missing?
An easy to use type of the extension to octokit this plugin provides.
Why?
We are passing an octokit instance as constructor parameter. To benefit of typing we want to set the type properly.
Alternatives you tried
We copied the type from the
index.d.ts
to build this workaround.