tsoa-next
    Preparing search index...

    Interface ExtendedRoutesConfig

    interface ExtendedRoutesConfig {
        authenticationModule?: string;
        basePath?: string;
        bodyCoercion: boolean;
        controllerPathGlobs?: string[];
        entryFile: string;
        esm?: boolean;
        iocModule?: string;
        middleware?: "express" | "hapi" | "koa";
        middlewareTemplate?: string;
        multerOpts?: Options;
        noImplicitAdditionalProperties:
            | "ignore"
            | "throw-on-extras"
            | "silently-remove-extras";
        noWriteIfUnchanged?: boolean;
        rewriteRelativeImportExtensions?: boolean;
        rootSecurity?: Security[];
        routeGenerator?: string
        | RouteGeneratorImpl;
        routesDir: string;
        routesFileName?: string;
    }

    Hierarchy

    • RoutesConfig
      • ExtendedRoutesConfig
    Index

    Properties

    authenticationModule?: string

    Authentication Module for express, hapi and koa

    basePath?: string

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

    bodyCoercion: boolean
    controllerPathGlobs?: string[]
    entryFile: string
    esm?: boolean

    When enabled, the imports in the routes files will have a .js extention to support esm.

    false
    
    iocModule?: string

    IOC module; e.g. './inversify/ioc' where IOC container named iocContainer is defined (https://github.com/inversify/InversifyJS)

    middleware?: "express" | "hapi" | "koa"

    Middleware provider.

    middlewareTemplate?: string

    Override the Middleware template

    multerOpts?: Options
    noImplicitAdditionalProperties:
        | "ignore"
        | "throw-on-extras"
        | "silently-remove-extras"
    noWriteIfUnchanged?: boolean

    Avoid writing the generated route file if the existing file is identical (useful to optimize watch processes); false by default

    rewriteRelativeImportExtensions?: boolean

    When enabled, the imports in the routes files will keep having a .ts extention to support the TypeScript 5.7 feature rewriteRelativeImportExtensions.

    false
    
    rootSecurity?: Security[]
    routeGenerator?: string | RouteGeneratorImpl
    routesDir: string

    Routes directory; generated routes.ts (which contains the generated code wiring up routes using middleware of choice) will be dropped here

    routesFileName?: string

    Routes filename; the filename of the generated route file ('routes.ts' by default)