@progress/kendo-react-form
Version:
React Form is a small and fast package for form state management with zero dependencies. KendoReact Form package
18 lines (17 loc) • 833 B
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { KeyValue } from './KeyValue.js';
/**
* Validates an entire form and returns error messages.
*
* * values - Contains the current values from all form fields
* * valueGetter - Gets field values using field paths like 'user.name'
*
* Returns a key-value pair where the key is the field path and the value is the error message.
*/
export type FormValidatorType = (values: any, valueGetter: (name: string) => any) => KeyValue<string> | undefined;