- foldIndex<In, State, Return>(args): UnregisteredAggregateIndex<In, Return>
-
Parameters
-
args: {
add: ((state, value) => State);
delete: ((state, oldValue) => State);
init: State;
result: ((state) => Return);
update: ((state, oldValue, newValue) => State);
}
-
add: ((state, value) => State)
-
- (state, value): State
-
Returns State
-
delete: ((state, oldValue) => State)
-
- (state, oldValue): State
-
Parameters
-
state: State
-
oldValue: In
Returns State
-
init: State
-
result: ((state) => Return)
-
- (state): Return
-
Returns Return
-
update: ((state, oldValue, newValue) => State)
-
- (state, oldValue, newValue): State
-
Parameters
-
state: State
-
oldValue: In
-
newValue: In
Returns State
Create a new FoldIndex.