From 25e56fcab092c5c6343e7a57e54e193f2cdbf4ae Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 30 Aug 2019 17:56:25 +0200 Subject: New module for Kotlin Redux. --- .../src/main/kotlin/pl/treksoft/kvision/redux/ReduxStore.kt | 2 +- .../src/main/kotlin/pl/treksoft/kvision/redux/StateBinding.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'kvision-modules/kvision-redux/src/main/kotlin/pl/treksoft/kvision') 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) -> WrapperAction typealias GetState = () -> S typealias ActionCreator = (Dispatch, GetState) -> 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. -- cgit