aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-redux/src/main
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-08-30 17:56:25 +0200
committerRobert Jaros <rjaros@finn.pl>2019-08-30 17:56:25 +0200
commit25e56fcab092c5c6343e7a57e54e193f2cdbf4ae (patch)
tree44be383c83e3761daa4e367fadc4dd00149465a6 /kvision-modules/kvision-redux/src/main
parent3705853638c85a1ac3935d9b6e70ec801ebfb301 (diff)
downloadkvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.tar.gz
kvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.tar.bz2
kvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.zip
New module for Kotlin Redux.
Diffstat (limited to 'kvision-modules/kvision-redux/src/main')
-rw-r--r--kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt2
-rw-r--r--kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt1
2 files changed, 1 insertions, 2 deletions
diff --git a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
index bfe7bc50..8cb1540d 100644
--- a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
+++ b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt
@@ -22,12 +22,12 @@
package pl.treksoft.kvision.redux
import pl.treksoft.kvision.KVManagerRedux
-import redux.RAction
import redux.Reducer
import redux.Store
import redux.WrapperAction
import redux.rEnhancer
+typealias RAction = redux.RAction
typealias Dispatch<A> = (A) -> WrapperAction
typealias GetState<S> = () -> S
typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit
diff --git a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt
index 383e734e..a980a79a 100644
--- a/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt
+++ b/kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt
@@ -23,7 +23,6 @@ package pl.treksoft.kvision.redux
import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.Widget
-import redux.RAction
/**
* A class which binds the redux store with the given container.