MicroUtils/repos/common/src/commonMain/kotlin/dev/inmo/micro_utils/repos/MapperRepo.kt
2020-11-09 00:46:26 +06:00

9 lines
317 B
Kotlin

package dev.inmo.micro_utils.repos
interface MapperRepo<FromKey, FromValue, ToKey, ToValue> {
suspend fun FromKey.toOutKey() = this as ToKey
suspend fun FromValue.toOutValue() = this as ToValue
suspend fun ToKey.toInnerKey() = this as FromKey
suspend fun ToValue.toInnerValue() = this as FromValue
}