UNPKG

fielder

Version:

A field-first form library for React and React Native

8 lines (7 loc) 246 B
import { FieldsState } from '../types'; export declare type ActionHandler<T extends { type: string; config?: any; }, Config = T extends { config: infer C; } ? C : never> = (state: FieldsState) => (args: Config) => FieldsState;