Fix (MangasPage): crash when extensions trying to destructuring MangasPage

This commit is contained in:
Cuong-Tran 2025-02-12 00:05:50 +07:00
parent 8f7bbadb52
commit de9473b239
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -29,6 +29,12 @@ open /* SY <-- */ class MangasPage(open val mangas: List<SManga>, open val hasNe
override fun toString(): String {
return "MangasPage(mangas=$mangas, hasNextPage=$hasNextPage)"
}
// KMK -->
// Additional methods to mimic data class behavior
operator fun component1() = mangas
operator fun component2() = hasNextPage
// KMK <--
}
// SY -->