From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- api/pl.treksoft.kvision.redux/index.html | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'api/pl.treksoft.kvision.redux/index.html') diff --git a/api/pl.treksoft.kvision.redux/index.html b/api/pl.treksoft.kvision.redux/index.html index 2adbbdfc..6c2aba79 100644 --- a/api/pl.treksoft.kvision.redux/index.html +++ b/api/pl.treksoft.kvision.redux/index.html @@ -14,52 +14,52 @@ -

RAction

+(js) +

ActionCreator

-interface RAction +typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit -

ReduxStore

+(js) +

Dispatch

-class ReduxStore<S : Any, A : RAction> : ObservableState<S> -

A class implementing redux pattern backed by the Redux Kotlin library.

- +typealias Dispatch<A> = (A) -> Unit - - -

Type Aliases

- - +typealias GetState<S> = () -> S +interface RAction +typealias ReducerFun<S, A> = (S, A) -> S +

A class implementing redux pattern backed by the Redux Kotlin library.

+class ReduxStore<S : Any, A : RAction> : ObservableState<S>
-

ActionCreator

+(js) +

GetState

-typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit
-

Dispatch

+(js) +

RAction

-typealias Dispatch<A> = (A) -> Unit
-

GetState

+(js) +

ReducerFun

-typealias GetState<S> = () -> S
-

ReducerFun

+(js) +

ReduxStore

-typealias ReducerFun<S, A> = (S, A) -> S
@@ -68,13 +68,13 @@ -

createReduxStore

+(js) +

createReduxStore

-fun <S : Any, A : RAction> createReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: <ERROR CLASS><S>): ReduxStore<S, A>
-fun <S : Any, A : RAction> createReduxStore(reducer: <ERROR CLASS><S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>

An inline helper function for creating Redux store.

- +fun <S : Any, A : RAction> createReduxStore(reducer: ReducerFun<S, A>, initialState: S, vararg middlewares: Middleware<S>): ReduxStore<S, A>
+fun <S : Any, A : RAction> createReduxStore(reducer: Reducer<S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A> -- cgit