UNPKG

@octokit/plugin-rest-endpoint-methods

Version:

Octokit plugin adding one method for all of api.github.com REST API endpoints

13 lines (12 loc) 509 B
import type { Octokit } from "@octokit/core"; export type { RestEndpointMethodTypes } from "./generated/parameters-and-response-types.js"; import type { Api } from "./types.js"; export type { Api }; export declare function restEndpointMethods(octokit: Octokit): Api; export declare namespace restEndpointMethods { var VERSION: string; } export declare function legacyRestEndpointMethods(octokit: Octokit): Api["rest"] & Api; export declare namespace legacyRestEndpointMethods { var VERSION: string; }