File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,17 @@ function sortEndpoints(endpoints) {
6767}
6868
6969function endpointToTypes ( endpoint ) {
70+ const key = endpointToKey ( endpoint ) ;
7071 const response = endpoint . resultsKey
71- ? `Endpoints["GET ${ endpoint . url } " ]["response"] & { data: Endpoints["GET ${ endpoint . url } " ]["response"]["data"]["${ endpoint . resultsKey } "] }`
72- : `Endpoints["GET ${ endpoint . url } " ]["response"]` ;
72+ ? `Endpoints[${ key } ]["response"] & { data: Endpoints[${ key } ]["response"]["data"]["${ endpoint . resultsKey } "] }`
73+ : `Endpoints[${ key } ]["response"]` ;
7374
7475 return `
7576 /**
7677 * @see ${ endpoint . documentationUrl }
7778 */
78- "GET ${ endpoint . url } " : {
79- parameters: Endpoints["GET ${ endpoint . url } " ]["parameters"];
79+ ${ key } : {
80+ parameters: Endpoints[${ key } ]["parameters"];
8081 response: ${ response } ;
8182 };
8283 ` ;
You can’t perform that action at this time.
0 commit comments