Back to documentation
Preparing search index...
The search index is not available
API Reference
API Reference
langgraph
SingleReducer
Type alias SingleReducer<ValueType, UpdateType>
Single
Reducer
<
ValueType
,
UpdateType
>
:
{
default
?:
(
(
)
=>
ValueType
)
;
reducer
:
BinaryOperator
<
ValueType
,
UpdateType
>
;
}
|
{
default
?:
(
(
)
=>
ValueType
)
;
value
:
BinaryOperator
<
ValueType
,
UpdateType
>
;
}
|
null
Type Parameters
ValueType
UpdateType
=
ValueType
Type declaration
Optional
default
?:
(
(
)
=>
ValueType
)
(
)
:
ValueType
Returns
ValueType
reducer
:
BinaryOperator
<
ValueType
,
UpdateType
>
Type declaration
Optional
default
?:
(
(
)
=>
ValueType
)
(
)
:
ValueType
Returns
ValueType
value
:
BinaryOperator
<
ValueType
,
UpdateType
>
Deprecated
Use
reducer
instead
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
API Reference
Loading...
Deprecated
Use
reducer
instead