Hi! Newbie here trying to migrate from LegacyRestC...
# kvision
c
Hi! Newbie here trying to migrate from LegacyRestClient to RestClient. The challenge I'm facing is that it's called from a generic function:
suspend fun <T : Any> loadItem(deserializer: Deserializationstrategy<T>): Promise<T>
Naively, I try:
val promise : Promise<T> = RestClient().call(url) ...
But that throws an error "Cannot use 'T' as a reified type parameter. Use a class instead.". Any suggestions how I can get around this?