aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-02-13 15:08:42 +0100
committerRobert Jaros <rjaros@finn.pl>2019-02-13 15:08:42 +0100
commitea23ddd8dd11e9645b1dd061f373c3a0bade78f0 (patch)
tree676f0b180b2a0e3407b6c93ef2fa656fa467de45
parent5a32102ccd280a974bfa53bf88b6618d14339cb0 (diff)
downloadkvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.tar.gz
kvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.tar.bz2
kvision-ea23ddd8dd11e9645b1dd061f373c3a0bade78f0.zip
Minor declaration fixes.
-rw-r--r--kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt
index ea3199cf..53e612c6 100644
--- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt
+++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/CallAgent.kt
@@ -153,7 +153,7 @@ open class CallAgent {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- fun <T> remoteCall(
+ fun <T : Any> remoteCall(
url: String,
data: dynamic = null,
deserializer: DeserializationStrategy<T>,
@@ -182,7 +182,7 @@ open class CallAgent {
* @param beforeSend a content type of the request
* @return a promise of the result
*/
- fun <V> remoteCall(
+ fun <V : Any> remoteCall(
url: String,
serializer: SerializationStrategy<V>,
data: V,
@@ -206,7 +206,7 @@ open class CallAgent {
* @param transform a function to transform the result of the call
* @return a promise of the result
*/
- fun <T, V> remoteCall(
+ fun <T : Any, V : Any> remoteCall(
url: String,
serializer: SerializationStrategy<V>,
data: V,