injectable
injectable copied to clipboard
Missing dependencies warning when an abstract class extends on another abstract
abstract class A {}
abstract class B extends A {}
@LazySingleton(as: B)
class ApiClient extends B { }
class UserRepository {B client}
When I run the generator, I got the warning like
Missing dependencies in microsat/services/injection/injection.dart
[UserRepository] depends on unregistered type [B]
How can I get rid of this warning ?
This is after the latest update, I'm seeing this too but it doesn't break my code and it runs successfully.
Mine's broken.
as mentioned in #125 use ignoreUnregisteredTypes: [B]
in your InjectableInit
configuration to mute the warnings