summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.redux/-redux-store/-init-.html
blob: cbff3f505cb12d80a4c607bc860196fbb2c5e289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>ReduxStore.<init> - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.redux</a>&nbsp;/&nbsp;<a href="index.html">ReduxStore</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
<br/>
<h1>&lt;init&gt;</h1>
(js) <a name="pl.treksoft.kvision.redux.ReduxStore$&lt;init&gt;(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Function1((org.reduxkotlin.Store((pl.treksoft.kvision.redux.ReduxStore.S)), kotlin.Function1((kotlin.Function1((kotlin.Any, )), )))))))"></a>
<code><span class="identifier">ReduxStore</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Function1((org.reduxkotlin.Store((pl.treksoft.kvision.redux.ReduxStore.S)), kotlin.Function1((kotlin.Function1((kotlin.Any, )), )))))))/reducer">reducer</span><span class="symbol">:</span>&nbsp;<a href="../-reducer-fun.html"><span class="identifier">ReducerFun</span></a><span class="symbol">&lt;</span><span class="identifier">S</span><span class="symbol">,</span>&nbsp;<span class="identifier">A</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Function1((org.reduxkotlin.Store((pl.treksoft.kvision.redux.ReduxStore.S)), kotlin.Function1((kotlin.Function1((kotlin.Any, )), )))))))/initialState">initialState</span><span class="symbol">:</span>&nbsp;<span class="identifier">S</span><span class="symbol">, </span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Function1((org.reduxkotlin.Store((pl.treksoft.kvision.redux.ReduxStore.S)), kotlin.Function1((kotlin.Function1((kotlin.Any, )), )))))))/middlewares">middlewares</span><span class="symbol">:</span>&nbsp;<span class="identifier">Middleware</span><span class="symbol">&lt;</span><span class="identifier">S</span><span class="symbol">&gt;</span><span class="symbol">)</span></code>
<p>Creates a Redux store with given reducer function and initial state.</p>
<h3>Parameters</h3>
<p><a name="S"></a>
<code>S</code> - redux state type</p>
<p><a name="A"></a>
<code>A</code> - redux action type</p>
<p><a name="reducer"></a>
<code>reducer</code> - a reducer function</p>
<p><a name="initialState"></a>
<code>initialState</code> - an initial state</p>
<p><a name="middlewares"></a>
<code>middlewares</code> - a list of optional Redux Kotlin middlewares</p>
<p><strong>Constructor</strong><br/>
Creates a Redux store with given reducer function and initial state.</p>
(js) <a name="pl.treksoft.kvision.redux.ReduxStore$&lt;init&gt;(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Any)))"></a>
<code><span class="identifier">ReduxStore</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Any)))/reducer">reducer</span><span class="symbol">:</span>&nbsp;<span class="identifier">Reducer</span><span class="symbol">&lt;</span><span class="identifier">S</span><span class="symbol">,</span>&nbsp;<span class="identifier">A</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Any)))/initialState">initialState</span><span class="symbol">:</span>&nbsp;<span class="identifier">S</span><span class="symbol">, </span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.redux.ReduxStore$<init>(kotlin.Function2((pl.treksoft.kvision.redux.ReduxStore.S, pl.treksoft.kvision.redux.ReduxStore.A, )), pl.treksoft.kvision.redux.ReduxStore.S, kotlin.Array((kotlin.Any)))/middlewares">middlewares</span><span class="symbol">:</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span></code>
<p>Creates a Redux store with given reducer function and initial state.</p>
<h3>Parameters</h3>
<p><a name="S"></a>
<code>S</code> - redux state type</p>
<p><a name="A"></a>
<code>A</code> - redux action type</p>
<p><a name="reducer"></a>
<code>reducer</code> - a reducer function</p>
<p><a name="initialState"></a>
<code>initialState</code> - an initial state</p>
<p><a name="middlewares"></a>
<code>middlewares</code> - a list of optional Redux JS middlewares</p>
<p><strong>Constructor</strong><br/>
Creates a Redux store with given reducer function and initial state.</p>
</BODY>
</HTML>