File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @codifycli/ink-form" ,
33 "type" : " module" ,
4- "version" : " 0.0.2 " ,
4+ "version" : " 0.0.3 " ,
55 "description" : " Complex user-friendly form component for Codify" ,
66 "main" : " lib/index.js" ,
77 "exports" : " ./lib/index.js" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export interface FormProps {
3232 *
3333 * @param value the final value of the form.
3434 * */
35- onSubmit ?: ( value : Array < Record < string , any > > ) => void ;
35+ onSubmit ?: ( output : FormReturnValue ) => void ;
3636
3737 /**
3838 * You can use custom field implementations, by specifying their ``type`` attribute to a custom
@@ -204,3 +204,8 @@ export type SpecificFormFieldRendererProps<T extends FormField> = FormFieldRende
204204 onSave : ( newValue ?: ValueOfField < T > ) => void ;
205205 onCancel : ( ) => void ;
206206} ;
207+
208+ export type FormReturnValue = Array < {
209+ section : FormSection ;
210+ value : Record < string , unknown > ;
211+ } >
You can’t perform that action at this time.
0 commit comments