@@ -69,7 +69,7 @@ async function generateTypes() {
6969 `${ method . name } : {
7070 (params?: RestEndpointMethodTypes["${ namespace . namespace } "]["${ method . name } "]["parameters"]): Promise<RestEndpointMethodTypes["${ namespace . namespace } "]["${ method . name } "]["response"]>
7171
72- endpoint: EndpointInterface;
72+ endpoint: EndpointInterface<{ url: string }> ;
7373 }` ,
7474 ] . join ( "\n" )
7575 ) ;
@@ -82,10 +82,11 @@ async function generateTypes() {
8282
8383 const methodTypesSource = prettier . format (
8484 [
85- `import { Endpoints, RequestParameters } from "@octokit/types";` ,
85+ `import { EndpointInterface } from "@octokit/types";` ,
86+ `import { RestEndpointMethodTypes } from "./method-types";` ,
8687 "" ,
87- `export type RestEndpointMethodTypes = {
88- ${ RestEndpointMethodParameterAndResponseTypes . join ( "\n" ) }
88+ `export type RestEndpointMethods = {
89+ ${ RestEndpointMethodNamespaceTypes . join ( "\n" ) }
8990 }` ,
9091 ] . join ( "\n" ) ,
9192 {
@@ -94,11 +95,10 @@ async function generateTypes() {
9495 ) ;
9596 const parametersAndResponsesTypes = prettier . format (
9697 [
97- `import { EndpointInterface } from "@octokit/types";` ,
98- `import { RestEndpointMethodTypes } from "./method-types";` ,
98+ `import { Endpoints, RequestParameters } from "@octokit/types";` ,
9999 "" ,
100- `export type RestEndpointMethods = {
101- ${ RestEndpointMethodNamespaceTypes . join ( "\n" ) }
100+ `export type RestEndpointMethodTypes = {
101+ ${ RestEndpointMethodParameterAndResponseTypes . join ( "\n" ) }
102102 }` ,
103103 ] . join ( "\n" ) ,
104104 {
0 commit comments