Hello,
In my app I have a Proxy Provider class with @InjectableProxy.
To register it, I'm using the ClsModule.forFeature() to import it in my DatabaseModule.
@InjectableProxy()
export class User {}
@Module({
imports: [ClsModule.forFeature(User)],
providers: [DatabaseService]
})
export class DatabaseModule
@Injectable()
export class DatabaseService {
constructor(private readonly user: User)
}
It's all working fine, but now I want to move my DatabaseModule and DatabaseService into a separate library and keep User into the application.
Any idea on how to still inject User into DatabaseService please ?