diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-08-30 17:56:25 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-08-30 17:56:25 +0200 |
commit | 25e56fcab092c5c6343e7a57e54e193f2cdbf4ae (patch) | |
tree | 44be383c83e3761daa4e367fadc4dd00149465a6 /kvision-modules/kvision-redux/src | |
parent | 3705853638c85a1ac3935d9b6e70ec801ebfb301 (diff) | |
download | kvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.tar.gz kvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.tar.bz2 kvision-25e56fcab092c5c6343e7a57e54e193f2cdbf4ae.zip |
New module for Kotlin Redux.
Diffstat (limited to 'kvision-modules/kvision-redux/src')
-rw-r--r-- | kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt | 2 | ||||
-rw-r--r-- | kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt | 1 |
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. |