subTypes

fun <T : Any> DI.Builder.TypeBinder<T>.subTypes(): TypeBinderSubTypes<T>

Allows to bind in an existing set binding (rather than directly as a new binding).

First part of the bind<Type>().inSet() with binding syntax.

Parameters

T

The provided type of all bindings in the set.

setTypeToken

The type of the bound set.