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

x/valibot/src/index.ts>ReduceItemsAction

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