mini-effect
    Preparing search index...

    Interface ReduceItemsAction<TInput$1, TOutput$1>

    Reduce items action interface.

    interface ReduceItemsAction<TInput$1 extends ArrayInput, TOutput$1> {
        "~run": (
            dataset: SuccessDataset<TInput$1>,
            config: Config<BaseIssue<unknown>>,
        ) => OutputDataset<TOutput$1, BaseIssue<unknown>>;
        "~types"?: { input: TInput$1; issue: never; output: TOutput$1 };
        async: false;
        initial: TOutput$1;
        kind: "transformation";
        operation: ArrayAction$1<TInput$1, TOutput$1>;
        reference: <TInput$1 extends ArrayInput, TOutput$1>(
            operation: ArrayAction$1<TInput$1, TOutput$1>,
            initial: TOutput$1,
        ) => ReduceItemsAction<TInput$1, TOutput$1>;
        type: "reduce_items";
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    "~run": (
        dataset: SuccessDataset<TInput$1>,
        config: Config<BaseIssue<unknown>>,
    ) => OutputDataset<TOutput$1, BaseIssue<unknown>>

    Transforms known input values.

    Type Declaration

    "~types"?: { input: TInput$1; issue: never; output: TOutput$1 }

    The input, output and issue type.

    async: false

    Whether it's async.

    initial: TOutput$1

    The initial value.

    kind: "transformation"

    The object kind.

    operation: ArrayAction$1<TInput$1, TOutput$1>

    The reduce items operation.

    reference: <TInput$1 extends ArrayInput, TOutput$1>(
        operation: ArrayAction$1<TInput$1, TOutput$1>,
        initial: TOutput$1,
    ) => ReduceItemsAction<TInput$1, TOutput$1>

    The action reference.

    Type Declaration

      • <TInput$1 extends ArrayInput, TOutput$1>(
            operation: ArrayAction$1<TInput$1, TOutput$1>,
            initial: TOutput$1,
        ): ReduceItemsAction<TInput$1, TOutput$1>
      • Creates a reduce items transformation action.

        Type Parameters

        Parameters

        • operation: ArrayAction$1<TInput$1, TOutput$1>

          The reduce items operation.

        • initial: TOutput$1

          The initial value.

        Returns ReduceItemsAction<TInput$1, TOutput$1>

        A reduce items action.

    type: "reduce_items"

    The action type.