ModuleDefinition
A typealias for a lambda that defines a set of dependency bindings using the DependencyModuleBuilder DSL. This allows for a clean and readable way to declare modules.
Example:
val myModule: ModuleDefinition = {
single { MyService() }
factory { MyPresenter(get()) }
}Content copied to clipboard