UNPKG

fielder

Version:

A field-first form library for React and React Native

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