Browse documentation

FormTransform

Type. Form field transform callback.

Table of contents

Category

Type

Type import

ts
import type { FormTransform } from "valyrian.js/forms";

Public signature

ts
type FormTransform<TState extends FormState> = (value: unknown, state: TState) => unknown;

Type usage

FormTransform receives one field value and the complete typed form state.