File tree Expand file tree Collapse file tree 10 files changed +10
-110
lines changed
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky
import-file-extension-ts/client
sdk-client-optional/client
sdk-client-required/client
tsconfig-nodenext-sdk/client Expand file tree Collapse file tree 10 files changed +10
-110
lines changed Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
Original file line number Diff line number Diff line change @@ -130,21 +130,11 @@ export const createClient = (config: Config = {}): Client => {
130130 const validBody = getValidRequestBody ( opts ) ;
131131
132132 const kyOptions : KyOptions = {
133+ ...opts ,
133134 body : validBody as BodyInit ,
134- cache : opts . cache ,
135- credentials : opts . credentials ,
136- headers : opts . headers ,
137- integrity : opts . integrity ,
138- keepalive : opts . keepalive ,
139135 method : opts . method as KyOptions [ 'method' ] ,
140- mode : opts . mode ,
141136 redirect : 'follow' ,
142- referrer : opts . referrer ,
143- referrerPolicy : opts . referrerPolicy ,
144- retry : opts . retry ,
145- signal : opts . signal ,
146137 throwHttpErrors : opts . throwOnError ?? false ,
147- timeout : opts . timeout ,
148138 } ;
149139
150140 let request = new Request ( url , {
You can’t perform that action at this time.
0 commit comments