Skip to content

Commit 9f7c267

Browse files
authored
[typescript-fetch] fix #13853 add semi colon (#13856)
Co-authored-by: nologyance <nologyance>
1 parent 009bf4c commit 9f7c267

13 files changed

Lines changed: 65 additions & 65 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-fetch/runtime.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class BaseAPI {
141141
init: initParams,
142142
context,
143143
}))
144-
}
144+
};
145145

146146
const init: RequestInit = {
147147
...overridedInit,
@@ -215,11 +215,11 @@ export class BaseAPI {
215215
};
216216

217217
function isBlob(value: any): value is Blob {
218-
return typeof Blob !== 'undefined' && value instanceof Blob
218+
return typeof Blob !== 'undefined' && value instanceof Blob;
219219
}
220220

221221
function isFormData(value: any): value is FormData {
222-
return typeof FormData !== "undefined" && value instanceof FormData
222+
return typeof FormData !== "undefined" && value instanceof FormData;
223223
}
224224

225225
export class ResponseError extends Error {
@@ -257,7 +257,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
257257
export type HTTPHeaders = { [key: string]: string };
258258
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
259259
export type HTTPBody = Json | FormData | URLSearchParams;
260-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
260+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
261261
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
262262

263263
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -328,7 +328,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
328328
}
329329

330330
export interface Consume {
331-
contentType: string
331+
contentType: string;
332332
}
333333

334334
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/allOf-readonly/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/default-v3.0/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/default/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/enum/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/es6-target/src/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/multiple-parameters/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/runtime.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class BaseAPI {
152152
init: initParams,
153153
context,
154154
}))
155-
}
155+
};
156156

157157
const init: RequestInit = {
158158
...overridedInit,
@@ -226,11 +226,11 @@ export class BaseAPI {
226226
};
227227

228228
function isBlob(value: any): value is Blob {
229-
return typeof Blob !== 'undefined' && value instanceof Blob
229+
return typeof Blob !== 'undefined' && value instanceof Blob;
230230
}
231231

232232
function isFormData(value: any): value is FormData {
233-
return typeof FormData !== "undefined" && value instanceof FormData
233+
return typeof FormData !== "undefined" && value instanceof FormData;
234234
}
235235

236236
export class ResponseError extends Error {
@@ -268,7 +268,7 @@ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'
268268
export type HTTPHeaders = { [key: string]: string };
269269
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
270270
export type HTTPBody = Json | FormData | URLSearchParams;
271-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }
271+
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
272272
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
273273

274274
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
@@ -335,7 +335,7 @@ export function canConsumeForm(consumes: Consume[]): boolean {
335335
}
336336

337337
export interface Consume {
338-
contentType: string
338+
contentType: string;
339339
}
340340

341341
export interface RequestContext {

0 commit comments

Comments
 (0)