@shopify/react-form
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -72,5 +72,9 @@ import { ChangeEvent } from 'react'; | ||
} : T; | ||
export declare type FormMapping<Bag extends { | ||
[key: string]: FieldOutput<any>; | ||
}, FieldKey extends keyof Field<any>> = { | ||
/** | ||
Represents all of the values for a given key mapped out of a mixed dictionary of Field objects, | ||
nested Field objects, and arrays of nested Field objects. | ||
This is generally only useful if you're mapping over and transforming a nested tree of fields. | ||
*/ | ||
export declare type FormMapping<Bag, FieldKey extends keyof Field<any>> = { | ||
[Key in keyof Bag]: Bag[Key] extends any[] ? { | ||
@@ -77,0 +81,0 @@ [Index in keyof Bag[Key]]: FieldProp<Bag[Key][Index], FieldKey>; |
{ | ||
"name": "@shopify/react-form", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Manage react forms tersely and safely-typed with no magic using React hooks.", |
88741
1511