Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/actions/reduceItems/reduceItems.ts>ReduceItemsAction

The modular and type safe schema library for validating structural data 🤖
Latest
interface ReduceItemsAction
implements BaseTransformation<TInput, TOutput, never>
import { type ReduceItemsAction } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/reduceItems/reduceItems.ts";

Reduce items action type.

Type Parameters

TInput extends ArrayInput
TOutput

Properties

readonly
type: "reduce_items"

The action type.

readonly
reference: reduceItems

The action reference.

readonly
operation: ArrayAction<TInput, TOutput>

The reduce items operation.

readonly
initial: TOutput

The initial value.