Libraries
    Preparing search index...

    Type Alias UseFieldResult<T>

    Return type for useField — strongly typed with the inferred property value type. When the value type cannot be inferred, falls back to any.

    type UseFieldResult<T = any> = {
        dirty: boolean;
        error: string | undefined;
        initialValue: T | undefined;
        onBlur: () => void;
        onChange: (value: T) => void;
        schema: SchemaBuilder<any, any, any>;
        setValue: (value: T) => void;
        touched: boolean;
        validating: boolean;
        value: T | undefined;
    }

    Type Parameters

    • T = any
    Index

    Properties

    dirty: boolean
    error: string | undefined
    initialValue: T | undefined
    onBlur: () => void
    onChange: (value: T) => void
    schema: SchemaBuilder<any, any, any>
    setValue: (value: T) => void
    touched: boolean
    validating: boolean
    value: T | undefined