I use @UseInterceptors with FilesInterceptor from @nestjs/platform-express. FilesInterceptor allows me to pass some configs (like files storage folder). I would like to pass not exact values (e.g. 'public') but to get them from configService.
From this answer (https://stackoverflow.com/a/59828094/13128344) I understood why calling this.configService from UseInterceptors results in undefined.
@UseInterceptors(FilesInterceptor('cat_pic', 2, this.configService.get('storageConfigs')))
So how can I pass configs to FilesInterceptor? Or how to access a service if I move file interceptor function to a separate module?