Skip to content

Commit d4f3ffc

Browse files
committed
fix: workaround "error TS4023: Exported variable Octokit has or is using name EndpointMethodsObject from external module node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types but cannot be named."
see octokit/action.js#8
1 parent 3140326 commit d4f3ffc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import { EndpointOptions } from "@octokit/types";
2-
31
import { RestEndpointMethods } from "./generated/rest-endpoint-methods-types";
42

5-
type EndpointMethodsObject = {
6-
[scope: string]: EndpointOptions | EndpointMethodsObject;
7-
};
8-
93
export type Api = {
10-
registerEndpoints: (endpoints: EndpointMethodsObject) => void;
4+
registerEndpoints: (endpoints: any) => void;
115
} & RestEndpointMethods;

0 commit comments

Comments
 (0)