Interface Config

interface Config {
    compilerOptions?: Record<string, unknown>;
    controllerPathGlobs?: string[];
    defaultNumberType?: "long" | "integer" | "float" | "double";
    entryFile: string;
    ignore?: string[];
    multerOpts?: Options;
    noImplicitAdditionalProperties?: "ignore" | "throw-on-extras" | "silently-remove-extras";
    routes: RoutesConfig;
    spec: SpecConfig;
}

Properties

compilerOptions?: Record<string, unknown>

Typescript CompilerOptions to be used during generation

Memberof

RoutesConfig

controllerPathGlobs?: string[]

An array of path globs that point to your route controllers that you would like to have tsoa include.

defaultNumberType?: "long" | "integer" | "float" | "double"
entryFile: string

The entry point to your API

ignore?: string[]

Directories to ignore during TypeScript metadata scan

multerOpts?: Options

Multer's options to generate multer's middleware. It doesn't support storage option

Example

{
* "dest": "/tmp"
* } Allow multer to write to file instead of using Memory's buffer
noImplicitAdditionalProperties?: "ignore" | "throw-on-extras" | "silently-remove-extras"

Modes that allow you to prevent input data from entering into your API. This will document your decision in the swagger.yaml and it will turn on excess-property validation (at runtime) in your routes.

routes: RoutesConfig

Route generation configuration object

Swagger generation configuration object

Generated using TypeDoc