• Create a new FoldIndex.

    Type Parameters

    • In

    • State

    • 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
          • Parameters

            • state: State
            • value: In

            Returns State

      • delete: ((state, oldValue) => State)
          • (state, oldValue): State
          • Parameters

            • state: State
            • oldValue: In

            Returns State

      • init: State
      • result: ((state) => Return)
          • (state): Return
          • Parameters

            • state: State

            Returns Return

      • update: ((state, oldValue, newValue) => State)
          • (state, oldValue, newValue): State
          • Parameters

            • state: State
            • oldValue: In
            • newValue: In

            Returns State

    Returns UnregisteredAggregateIndex<In, Return>

Generated using TypeDoc