diff --git a/modules/openapi-generator/src/main/resources/typescript/index.mustache b/modules/openapi-generator/src/main/resources/typescript/index.mustache index f8cad2b47c14..f6703891eb90 100644 --- a/modules/openapi-generator/src/main/resources/typescript/index.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/index.mustache @@ -4,7 +4,7 @@ export * from "./auth/auth{{importFileExtension}}"; export * from "./models/all{{importFileExtension}}"; {{/models.0}} export { createConfiguration } from "./configuration{{importFileExtension}}" -export{{#platforms}}{{#deno}} type{{/deno}}{{/platforms}} { Configuration } from "./configuration{{importFileExtension}}" +export type { Configuration } from "./configuration{{importFileExtension}}" export * from "./apis/exception{{importFileExtension}}"; export * from "./servers{{importFileExtension}}"; export { RequiredError } from "./apis/baseapi{{importFileExtension}}"; @@ -13,10 +13,10 @@ export { RequiredError } from "./apis/baseapi{{importFileExtension}}"; export { Middleware } from './middleware{{importFileExtension}}'; {{/useRxJS}} {{^useRxJS}} -export{{#platforms}}{{#deno}} type{{/deno}}{{/platforms}} { PromiseMiddleware as Middleware } from './middleware{{importFileExtension}}'; +export type { PromiseMiddleware as Middleware } from './middleware{{importFileExtension}}'; {{/useRxJS}} {{#useObjectParameters}} -export { {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}{{#platforms}}{{#deno}}type {{/deno}}{{/platforms}}{{classname}}{{operationIdCamelCase}}Request, {{/operation}}Object{{classname}} as {{classname}}{{^-last}}, {{/-last}} {{/operations}}{{/apis}}{{/apiInfo}}} from './types/ObjectParamAPI{{importFileExtension}}'; +export { {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}type {{classname}}{{operationIdCamelCase}}Request, {{/operation}}Object{{classname}} as {{classname}}{{^-last}}, {{/-last}} {{/operations}}{{/apis}}{{/apiInfo}}} from './types/ObjectParamAPI{{importFileExtension}}'; {{/useObjectParameters}} {{^useObjectParameters}} {{#useRxJS}}