File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/react-form-renderer/src/form-renderer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1- import { ComponentType , FunctionComponent } from 'react' ;
1+ import { ComponentType , FunctionComponent , ReactNode } from 'react' ;
22import { FormProps } from 'react-final-form' ;
33import Schema from '../common-types/schema' ;
44import ComponentMapper from '../common-types/component-mapper' ;
@@ -12,6 +12,7 @@ export interface FormRendererProps extends FormProps {
1212 initialValues ?: object ;
1313 onCancel ?: ( values : AnyObject , ...args : any [ ] ) => void ;
1414 onReset ?: ( ) => void ;
15+ onError ?: ( ...args : any [ ] ) => void ;
1516 schema : Schema ;
1617 clearOnUnmount ?: boolean ;
1718 clearedValue ?: any ;
@@ -20,6 +21,8 @@ export interface FormRendererProps extends FormProps {
2021 validatorMapper ?: ValidatorMapper ;
2122 actionMapper ?: ActionMapper ;
2223 schemaValidatorMapper ?: SchemaValidatorMapper ;
24+ FormTemplateProps ?: AnyObject ;
25+ children ?: ReactNode | ( ( props : FormTemplateRenderProps ) => ReactNode )
2326}
2427
2528declare const FormRenderer : React . ComponentType < FormRendererProps > ;
You can’t perform that action at this time.
0 commit comments