@@ -5,7 +5,7 @@ import { Tsoa } from '@tsoa/runtime';
5
5
import { DefaultRouteGenerator } from '../routeGeneration/defaultRouteGenerator' ;
6
6
import { fsMkDir } from '../utils/fs' ;
7
7
import path = require( 'path' ) ;
8
- import { Config as BaseConfig } from " @tsoa/runtime" ;
8
+ import { Config as BaseConfig } from ' @tsoa/runtime' ;
9
9
10
10
export async function generateRoutes < Config extends ExtendedRoutesConfig > (
11
11
routesConfig : Config ,
@@ -15,7 +15,7 @@ export async function generateRoutes<Config extends ExtendedRoutesConfig>(
15
15
* pass in cached metadata returned in a previous step to speed things up
16
16
*/
17
17
metadata ?: Tsoa . Metadata ,
18
- defaultNumberType ?: BaseConfig [ 'defaultNumberType' ]
18
+ defaultNumberType ?: BaseConfig [ 'defaultNumberType' ] ,
19
19
) {
20
20
if ( ! metadata ) {
21
21
metadata = new MetadataGenerator ( routesConfig . entryFile , compilerOptions , ignorePaths , routesConfig . controllerPathGlobs , routesConfig . rootSecurity , defaultNumberType ) . Generate ( ) ;
@@ -26,6 +26,15 @@ export async function generateRoutes<Config extends ExtendedRoutesConfig>(
26
26
await fsMkDir ( routesConfig . routesDir , { recursive : true } ) ;
27
27
await routeGenerator . GenerateCustomRoutes ( ) ;
28
28
29
+ if ( routesConfig . multerOpts ) {
30
+ console . warn (
31
+ 'Config MulterOptions is deprecated since v6.4.0 instroduces RegisterRoutes can pass multerOptions,' +
32
+ 'we will quickly remove this options soon at future version.' +
33
+ '(https://github.com/lukeautry/tsoa/issues/1587#issuecomment-2391291433)' +
34
+ '(https://github.com/lukeautry/tsoa/pull/1638)' ,
35
+ ) ;
36
+ }
37
+
29
38
return metadata ;
30
39
}
31
40
0 commit comments