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

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

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