koin-core / org.koin.core.scope / Scope / declare

declare

inline fun <reified T> declare(instance: T, qualifier: Qualifier? = null, secondaryTypes: List<KClass<*>>? = null): Unit

Declare a component definition from the given instance This result of declaring a scoped/single definition of type T, returning the given instance (single definition of th current scope is root)

Parameters

instance -

qualifier -

secondaryTypes -