Type alias ReducerFn

ReducerFn: ((existing, incoming) => unknown)

Custom reducer function for a single state field.

Type declaration

    • (existing, incoming): unknown
    • Parameters

      • existing: unknown

        The current field value held in GraphState.

      • incoming: unknown

        The new value emitted by the most recently completed node.

      Returns unknown

Returns

The merged value to store back into GraphState.