UNPKG

@mantine/form

Version:

Mantine form management library

6 lines (5 loc) 323 B
import type { StandardSchemaV1 } from '@standard-schema/spec'; import type { FormErrors } from './types'; export declare function schemaResolver<Sync extends boolean = false>(schema: StandardSchemaV1, _options?: { sync?: Sync; }): Sync extends true ? (values: any) => FormErrors : (values: any) => Promise<FormErrors>;