migration onto new ktor and other dependencies

This commit is contained in:
2022-04-27 14:39:21 +06:00
parent eba44cd394
commit 8364020671
31 changed files with 127 additions and 110 deletions

View File

@@ -27,13 +27,6 @@ sealed interface Either<T1, T2> {
@Deprecated("Use optionalT2 instead", ReplaceWith("optionalT2"))
val t2: T2?
get() = optionalT2.dataOrNull()
companion object {
fun <T1, T2> serializer(
t1Serializer: KSerializer<T1>,
t2Serializer: KSerializer<T2>,
): KSerializer<Either<T1, T2>> = EitherSerializer(t1Serializer, t2Serializer)
}
}
class EitherSerializer<T1, T2>(