| 180 | type RouteGeneratorImpl = new (metadata: Tsoa.Metadata, options: ExtendedRoutesConfig) => AbstractRouteGenerator<any>; |
| 181 | |
| 182 | export 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 | |
| 192 | const validateRoutesConfig = async (config: Config): Promise<ExtendedRoutesConfig> => { |
| 193 | if (!config.entryFile && (!config.controllerPathGlobs || !config.controllerPathGlobs.length)) { |
nothing calls this directly
no outgoing calls
no test coverage detected