diff --git a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache index f1aa9e6c4bd..de492936e72 100644 --- a/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache +++ b/modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache @@ -14,7 +14,7 @@ const BASE_PATH = "{{{basePath}}}".replace(/\/+$/, ''); export interface FetchArgs { url: string; - options: any; + options: any; } export class BaseAPI { @@ -25,7 +25,7 @@ export class BaseAPI { this.basePath = basePath; this.fetch = fetch; } -} +}; {{#models}} {{#model}} @@ -118,7 +118,7 @@ export const {{classname}}FetchParamCreactor = { }; }, {{/operation}} -} +}; /** * {{classname}} - functional programming interface{{#description}} @@ -179,7 +179,7 @@ export const {{classname}}Factory = function (fetch?: FetchAPI, basePath?: strin return {{classname}}Fp.{{nickname}}({{#hasParams}}params{{/hasParams}})(fetch, basePath); }, {{/operation}} - } + }; }; {{/operations}} diff --git a/samples/client/petstore/typescript-fetch/builds/default/api.ts b/samples/client/petstore/typescript-fetch/builds/default/api.ts index 0a699f9f75a..99d6195e804 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/api.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/api.ts @@ -23,7 +23,7 @@ const BASE_PATH = "http://petstore.swagger.io/v2".replace(/\/+$/, ''); export interface FetchArgs { url: string; - options: any; + options: any; } export class BaseAPI { @@ -34,7 +34,7 @@ export class BaseAPI { this.basePath = basePath; this.fetch = fetch; } -} +}; export interface Category { "id"?: number; @@ -293,7 +293,7 @@ export const PetApiFetchParamCreactor = { options: fetchOptions, }; }, -} +}; /** * PetApi - functional programming interface @@ -591,7 +591,7 @@ export const PetApiFactory = function (fetch?: FetchAPI, basePath?: string) { uploadFile(params: { petId: number; additionalMetadata?: string; file?: any; }) { return PetApiFp.uploadFile(params)(fetch, basePath); }, - } + }; }; @@ -688,7 +688,7 @@ export const StoreApiFetchParamCreactor = { options: fetchOptions, }; }, -} +}; /** * StoreApi - functional programming interface @@ -836,7 +836,7 @@ export const StoreApiFactory = function (fetch?: FetchAPI, basePath?: string) { placeOrder(params: { body?: Order; }) { return StoreApiFp.placeOrder(params)(fetch, basePath); }, - } + }; }; @@ -1032,7 +1032,7 @@ export const UserApiFetchParamCreactor = { options: fetchOptions, }; }, -} +}; /** * UserApi - functional programming interface @@ -1318,6 +1318,6 @@ export const UserApiFactory = function (fetch?: FetchAPI, basePath?: string) { updateUser(params: { username: string; body?: User; }) { return UserApiFp.updateUser(params)(fetch, basePath); }, - } + }; };