UNPKG

react-define-form

Version:

React define form offers alternative typescript bindings for [react-final-form](https://github.com/final-form/react-final-form). It requires you to "define" a form type, specifying the type of the form data.

4 lines (3 loc) 221 B
import { FieldSpec } from './createField'; export declare type ValueProperty<T> = T extends FieldSpec<infer U, any> ? U : never; export declare type ParsedValueProperty<T> = T extends FieldSpec<any, infer U> ? U : never;