You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a depinject provider requires Foo, but FooBar is provided in the container there will be an error and we won't know that FooBar is a possible solution. Depinject should search for all interfaces which implement the required interface and suggest these as options to the user. Ex:
Provide needFoo needs the interface Foo, possible match(es) are:
FooBar
The text was updated successfully, but these errors were encountered:
aaronc
changed the title
Provide useful error when an interface can't be resolved but there are implementing types in the container
Provide useful error when an interface can't be resolved but there are implementing types in depinject
May 31, 2022
Given two interfaces:
If a depinject provider requires
Foo
, butFooBar
is provided in the container there will be an error and we won't know thatFooBar
is a possible solution. Depinject should search for all interfaces which implement the required interface and suggest these as options to the user. Ex:The text was updated successfully, but these errors were encountered: