Skip to content

Commit

Permalink
fix: workaround "error TS4023: Exported variable Octokit has or is us…
Browse files Browse the repository at this point in the history
…ing name EndpointMethodsObject from external module node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types but cannot be named."

see octokit/action.js#8
  • Loading branch information
gr2m committed Nov 25, 2019
1 parent 3140326 commit d4f3ffc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { EndpointOptions } from "@octokit/types";

import { RestEndpointMethods } from "./generated/rest-endpoint-methods-types";

type EndpointMethodsObject = {
[scope: string]: EndpointOptions | EndpointMethodsObject;
};

export type Api = {
registerEndpoints: (endpoints: EndpointMethodsObject) => void;
registerEndpoints: (endpoints: any) => void;
} & RestEndpointMethods;

0 comments on commit d4f3ffc

Please sign in to comment.