Skip to content

tsoa-next / @tsoa-next/cli / ExtendedRoutesConfig

Interface: ExtendedRoutesConfig ​

Defined in: cli/src/api.ts:419

Normalized route-generation config returned by validateRoutesConfig.

Extends ​

  • RoutesConfig

Properties ​

authenticationModule? ​

ts
optional authenticationModule?: string;

Defined in: packages/runtime/src/config.ts:275

Authentication module path used by generated routes.

Inherited from ​

ts
RoutesConfig.authenticationModule

basePath? ​

ts
optional basePath?: string;

Defined in: packages/runtime/src/config.ts:255

Base API path; e.g. the '/v1' in https://myapi.com/v1

Inherited from ​

ts
RoutesConfig.basePath

bodyCoercion ​

ts
bodyCoercion: boolean;

Defined in: cli/src/api.ts:422

Whether to implicitly coerce body parameters into an accepted type.

Default ​

ts
true

Overrides ​

ts
RoutesConfig.bodyCoercion

controllerPathGlobs? ​

ts
optional controllerPathGlobs?: string[];

Defined in: cli/src/api.ts:423


entryFile ​

ts
entryFile: string;

Defined in: cli/src/api.ts:420


esm? ​

ts
optional esm?: boolean;

Defined in: packages/runtime/src/config.ts:282

When enabled, generated route imports use .js extensions for ESM output.

Default ​

ts
false

Inherited from ​

ts
RoutesConfig.esm

iocModule? ​

ts
optional iocModule?: string;

Defined in: packages/runtime/src/config.ts:270

IoC module path, for example ./inversify/ioc.

Inherited from ​

ts
RoutesConfig.iocModule

middleware? ​

ts
optional middleware?: "express" | "hapi" | "koa";

Defined in: packages/runtime/src/config.ts:260

Middleware provider.

Inherited from ​

ts
RoutesConfig.middleware

middlewareTemplate? ​

ts
optional middlewareTemplate?: string;

Defined in: packages/runtime/src/config.ts:265

Custom Handlebars template path used instead of the built-in middleware template.

Inherited from ​

ts
RoutesConfig.middlewareTemplate

multerOpts? ​

ts
optional multerOpts?: Options;

Defined in: cli/src/api.ts:424


noImplicitAdditionalProperties ​

ts
noImplicitAdditionalProperties: "ignore" | "throw-on-extras" | "silently-remove-extras";

Defined in: cli/src/api.ts:421


noWriteIfUnchanged? ​

ts
optional noWriteIfUnchanged?: boolean;

Defined in: packages/runtime/src/config.ts:250

Skips writing the route file when the generated content matches the existing file.

Inherited from ​

ts
RoutesConfig.noWriteIfUnchanged

rewriteRelativeImportExtensions? ​

ts
optional rewriteRelativeImportExtensions?: boolean;

Defined in: packages/runtime/src/config.ts:296

When enabled, generated route imports keep .ts extensions to support TypeScript 5.7 rewriteRelativeImportExtensions.

Default ​

ts
false

Inherited from ​

ts
RoutesConfig.rewriteRelativeImportExtensions

rootSecurity? ​

ts
optional rootSecurity?: Security[];

Defined in: cli/src/api.ts:425


routeGenerator? ​

ts
optional routeGenerator?: 
  | string
  | ((metadata, options) => AbstractRouteGenerator<ExtendedRoutesConfig>);

Defined in: cli/src/api.ts:427


routesDir ​

ts
routesDir: string;

Defined in: packages/runtime/src/config.ts:240

Directory where generated route files are written.

Inherited from ​

ts
RoutesConfig.routesDir

routesFileName? ​

ts
optional routesFileName?: string;

Defined in: packages/runtime/src/config.ts:245

Filename for the generated route module.

Inherited from ​

ts
RoutesConfig.routesFileName

runtimeSpecConfig? ​

ts
optional runtimeSpecConfig?: RuntimeSpecConfigSnapshot;

Defined in: cli/src/api.ts:426

TypeScript-first OpenAPI generation, route generation, and runtime validation.