Kodein-Type
A light multiplatform Kotlin reflection API.
erasedgenerates aTypeTokenthat represents a type without its (optional) generic parameters, available at compile-time and run-time.genericgenerates aTypeTokenthat represents a type with its generic parameters, available at compile-time only.erasedCompgenerates aTypeTokenthat represents a type with its generic parameters, available at run-time only.
All TypeTokens are comparable between them:
erased<String>() == generic<String>()
erased<List<*>>() == generic<List<*>>()
generic<List<String>>() == erasedComp<List<String>>(List::class, String::class)