@logixjs/core
Preparing search index...
Reducer
Variable Reducer
Const
Reducer
:
{
mutate
:
<
S
,
A
extends
{
payload
?:
any
}
>
(
mutator
:
(
draft
:
Draft
<
S
>
,
payload
:
A
[
"payload"
]
)
=>
void
,
)
=>
(
state
:
S
,
action
:
A
,
sink
?:
(
path
:
string
|
FieldPath
)
=>
void
)
=>
S
;
mutateMap
:
<
R
extends
Readonly
<
Record
<
string
,
|
(
(
state
:
any
,
action
:
any
,
sink
?:
(
path
:
string
|
FieldPath
)
=>
void
,
)
=>
any
)
|
undefined
,
>
,
>
,
>
(
mutators
:
{
readonly
[
K
in
string
|
number
|
symbol
]
?:
(
draft
:
Draft
<
Parameters
<
NonNullable
<
NoInfer_
<
(...)
>
[
K
]
>
>
[
0
]
>
,
payload
:
Parameters
<
NonNullable
<
NoInfer_
<
(...)
>
[
K
]
>
>
[
1
]
extends
{
payload
:
P
;
}
?
P
:
Parameters
<
NonNullable
<
(...)
[
(...)
]
>
>
[
1
]
extends
{
payload
?:
P
}
?
P
|
undefined
:
never
,
)
=>
void
}
,
)
=>
R
;
}
= ModuleTagNS.Reducer
Type Declaration
mutate
:
<
S
,
A
extends
{
payload
?:
any
}
>
(
mutator
:
(
draft
:
Draft
<
S
>
,
payload
:
A
[
"payload"
]
)
=>
void
,
)
=>
(
state
:
S
,
action
:
A
,
sink
?:
(
path
:
string
|
FieldPath
)
=>
void
)
=>
S
mutateMap
:
<
R
extends
Readonly
<
Record
<
string
,
|
(
(
state
:
any
,
action
:
any
,
sink
?:
(
path
:
string
|
FieldPath
)
=>
void
,
)
=>
any
)
|
undefined
,
>
,
>
,
>
(
mutators
:
{
readonly
[
K
in
string
|
number
|
symbol
]
?:
(
draft
:
Draft
<
Parameters
<
NonNullable
<
NoInfer_
<
(...)
>
[
K
]
>
>
[
0
]
>
,
payload
:
Parameters
<
NonNullable
<
NoInfer_
<
(...)
>
[
K
]
>
>
[
1
]
extends
{
payload
:
P
;
}
?
P
:
Parameters
<
NonNullable
<
(...)
[
(...)
]
>
>
[
1
]
extends
{
payload
?:
P
}
?
P
|
undefined
:
never
,
)
=>
void
}
,
)
=>
R
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@logixjs/core
Loading...