get

inline fun <T : Any> get(): T(source)

The loaded config of type T, root or nested.


operator fun <T : Any> get(type: KClass<T>): T(source)

The loaded config of type, root or nested, so Konstant[AppConfig::class] works.

Throws

if Konstant is not initialized, no config of type was loaded, or type appears more than once among the nested specs.