UNPKG

@shopify/react-form

Version:

Manage react forms tersely and safely-typed with no magic using React hooks.

9 lines (8 loc) 243 B
import { FieldOutput, Field } from '../types'; interface FieldVisitor { (field: Field<any>): void; } export default function useVisitFields(fieldBag: { [key: string]: FieldOutput<any>; }, visitor: FieldVisitor): () => void; export {};