@@ -34,12 +34,12 @@ export class DevupApi {
3434 path : T ,
3535 ...options : [ RequiredOptions < O > ] extends [ never ]
3636 ? [ options ?: DevupApiRequestInit ]
37- : [ options : DevupApiRequestInit & O ]
37+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
3838 ) {
3939 return this . request ( path , {
4040 method : 'GET' ,
4141 ...options [ 0 ] ,
42- } as DevupApiRequestInit & O )
42+ } as DevupApiRequestInit & Omit < O , 'response' > )
4343 }
4444
4545 GET <
@@ -49,12 +49,12 @@ export class DevupApi {
4949 path : T ,
5050 ...options : [ RequiredOptions < O > ] extends [ never ]
5151 ? [ options ?: DevupApiRequestInit ]
52- : [ options : DevupApiRequestInit & O ]
52+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
5353 ) {
5454 return this . request ( path , {
5555 method : 'GET' ,
5656 ...options [ 0 ] ,
57- } as DevupApiRequestInit & O )
57+ } as DevupApiRequestInit & Omit < O , 'response' > )
5858 }
5959
6060 post <
@@ -64,12 +64,12 @@ export class DevupApi {
6464 path : T ,
6565 ...options : [ RequiredOptions < O > ] extends [ never ]
6666 ? [ options ?: DevupApiRequestInit ]
67- : [ options : DevupApiRequestInit & O ]
67+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
6868 ) {
6969 return this . request ( path , {
7070 method : 'POST' ,
7171 ...options [ 0 ] ,
72- } as DevupApiRequestInit & O )
72+ } as DevupApiRequestInit & Omit < O , 'response' > )
7373 }
7474
7575 POST <
@@ -79,12 +79,12 @@ export class DevupApi {
7979 path : T ,
8080 ...options : [ RequiredOptions < O > ] extends [ never ]
8181 ? [ options ?: DevupApiRequestInit ]
82- : [ options : DevupApiRequestInit & O ]
82+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
8383 ) {
8484 return this . request ( path , {
8585 method : 'POST' ,
8686 ...options [ 0 ] ,
87- } as DevupApiRequestInit & O )
87+ } as DevupApiRequestInit & Omit < O , 'response' > )
8888 }
8989
9090 put <
@@ -94,12 +94,12 @@ export class DevupApi {
9494 path : T ,
9595 ...options : [ RequiredOptions < O > ] extends [ never ]
9696 ? [ options ?: DevupApiRequestInit ]
97- : [ options : DevupApiRequestInit & O ]
97+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
9898 ) {
9999 return this . request ( path , {
100100 method : 'PUT' ,
101101 ...options [ 0 ] ,
102- } as DevupApiRequestInit & O )
102+ } as DevupApiRequestInit & Omit < O , 'response' > )
103103 }
104104
105105 PUT <
@@ -109,12 +109,12 @@ export class DevupApi {
109109 path : T ,
110110 ...options : [ RequiredOptions < O > ] extends [ never ]
111111 ? [ options ?: DevupApiRequestInit ]
112- : [ options : DevupApiRequestInit & O ]
112+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
113113 ) {
114114 return this . request ( path , {
115115 method : 'PUT' ,
116116 ...options [ 0 ] ,
117- } as DevupApiRequestInit & O )
117+ } as DevupApiRequestInit & Omit < O , 'response' > )
118118 }
119119
120120 delete <
@@ -124,12 +124,12 @@ export class DevupApi {
124124 path : T ,
125125 ...options : [ RequiredOptions < O > ] extends [ never ]
126126 ? [ options ?: DevupApiRequestInit ]
127- : [ options : DevupApiRequestInit & O ]
127+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
128128 ) {
129129 return this . request ( path , {
130130 method : 'DELETE' ,
131131 ...options [ 0 ] ,
132- } as DevupApiRequestInit & O )
132+ } as DevupApiRequestInit & Omit < O , 'response' > )
133133 }
134134
135135 DELETE <
@@ -139,12 +139,12 @@ export class DevupApi {
139139 path : T ,
140140 ...options : [ RequiredOptions < O > ] extends [ never ]
141141 ? [ options ?: DevupApiRequestInit ]
142- : [ options : DevupApiRequestInit & O ]
142+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
143143 ) {
144144 return this . request ( path , {
145145 method : 'DELETE' ,
146146 ...options [ 0 ] ,
147- } as DevupApiRequestInit & O )
147+ } as DevupApiRequestInit & Omit < O , 'response' > )
148148 }
149149
150150 patch <
@@ -154,12 +154,12 @@ export class DevupApi {
154154 path : T ,
155155 ...options : [ RequiredOptions < O > ] extends [ never ]
156156 ? [ options ?: DevupApiRequestInit ]
157- : [ options : DevupApiRequestInit & O ]
157+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
158158 ) {
159159 return this . request ( path , {
160160 method : 'PATCH' ,
161161 ...options [ 0 ] ,
162- } as DevupApiRequestInit & O )
162+ } as DevupApiRequestInit & Omit < O , 'response' > )
163163 }
164164
165165 PATCH <
@@ -169,24 +169,19 @@ export class DevupApi {
169169 path : T ,
170170 ...options : [ RequiredOptions < O > ] extends [ never ]
171171 ? [ options ?: DevupApiRequestInit ]
172- : [ options : DevupApiRequestInit & O ]
172+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
173173 ) {
174174 return this . request ( path , {
175175 method : 'PATCH' ,
176176 ...options [ 0 ] ,
177- } as DevupApiRequestInit & O )
177+ } as DevupApiRequestInit & Omit < O , 'response' > )
178178 }
179179
180- request <
181- T extends DevupApiStructKey ,
182- O extends Additional < T , DevupApiStruct > & {
183- params ?: Record < string , string | number | boolean | null | undefined >
184- } ,
185- > (
180+ request < T extends DevupApiStructKey , O extends Additional < T , DevupApiStruct > > (
186181 path : T ,
187182 ...options : [ RequiredOptions < O > ] extends [ never ]
188183 ? [ options ?: DevupApiRequestInit ]
189- : [ options : DevupApiRequestInit & O ]
184+ : [ options : DevupApiRequestInit & Omit < O , 'response' > ]
190185 ) {
191186 const { method, url } = getUrlWithMethod ( path )
192187 const mergedOptions = {
0 commit comments