@modular-forms/qwik
Version:
The modular and type-safe form library for Qwik
12 lines (11 loc) • 582 B
TypeScript
import type { FieldElement, FieldPath, FieldPathValue, FieldStore, FieldType, FieldValues, Maybe } from '../types';
/**
* Returns the current input of the element.
*
* @param element The field element.
* @param field The store of the field.
* @param type The data type to capture.
*
* @returns The element input.
*/
export declare function getElementInput<TFieldValues extends FieldValues, TFieldName extends FieldPath<TFieldValues>>(element: FieldElement, field: FieldStore<TFieldValues, TFieldName>, type: Maybe<FieldType<any>>): FieldPathValue<TFieldValues, TFieldName>;