bind

infix fun <S : Any> KoinDefinition<out S>.bind(clazz: KClass<S>): KoinDefinition<out S>

Add a compatible type to match for definition

Parameters

clazz

inline fun <S : Any> KoinDefinition<out S>.bind(): KoinDefinition<out S>

Add a compatible type to match for definition

Type-safety may be checked by "checkModules" from "koin-test" module.