MCPcopy
hub / github.com/lukeautry/tsoa / ExtendedRoutesConfig

Interface ExtendedRoutesConfig

packages/cli/src/cli.ts:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180type RouteGeneratorImpl = new (metadata: Tsoa.Metadata, options: ExtendedRoutesConfig) => AbstractRouteGenerator<any>;
181
182export interface ExtendedRoutesConfig extends RoutesConfig {
183 entryFile: Config['entryFile'];
184 noImplicitAdditionalProperties: Exclude<Config['noImplicitAdditionalProperties'], undefined>;
185 bodyCoercion: Exclude<RoutesConfig['bodyCoercion'], undefined>;
186 controllerPathGlobs?: Config['controllerPathGlobs'];
187 multerOpts?: Config['multerOpts'];
188 rootSecurity?: Config['spec']['rootSecurity'];
189 routeGenerator?: string | RouteGeneratorImpl;
190}
191
192const validateRoutesConfig = async (config: Config): Promise<ExtendedRoutesConfig> => {
193 if (!config.entryFile && (!config.controllerPathGlobs || !config.controllerPathGlobs.length)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected