Skip to main content
Module

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

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