import { Route, RequestParameters } from "@octokit/types"; import { RestEndpointMethods } from "./generated/method-types"; export type Api = { rest: RestEndpointMethods; }; export type EndpointDecorations = { mapToData?: string; deprecated?: string; renamed?: [string, string]; renamedParameters?: { [name: string]: string; }; }; export type EndpointsDefaultsAndDecorations = { [scope: string]: { [methodName: string]: [Route, RequestParameters?, EndpointDecorations?]; }; };