import { Octokit } from "@octokit/core" ; import { VERSION } from "./version" ; import { paginate } from "./paginate" ; import { iterator } from "./iterator" ; import { PaginateInterface } from "./types" ; export { PaginateInterface } from "./types" ; export { PaginatingEndpoints } from "./types" ; export { composePaginateRest } from "./compose-paginate" ; export { isPaginatingEndpoint , paginatingEndpoints , } from "./paginating-endpoints" ; param octokit param options export function paginateRest ( octokit ) { return { paginate : Object . assign ( paginate . bind ( null , octokit ) , { iterator : iterator . bind ( null , octokit ) , } ) as PaginateInterface , } ; } paginateRest . VERSION = VERSION ;