We can do `single<IService> { ServiceImpl() ...
# koin
a
We can do
single<IService> { ServiceImpl() }
but when I am trying to do
singleOf<IService>(::ServiceImpl)
. I know there is an alternate syntax
singleOf(::ServiceImpl) { bind<IService>() }
but the alternate is long and not consistent with that of
single
way of specifying the bonded interface
👍 1
a
singleOf is filling automatically all with get(), but then don't allow infered type parameter like with single: single<InferedType> { Definition(...) }
this is a current limitations, and some works are starting soon to propose an alternative
a
Nice to see this is already thought of(and to get confirmation that I am not missing any api which does this).. is there any tracking bug?
a
not yet open for this