Skip to content

Commit f468dc1

Browse files
committed
chore(renderer): add missing propsTypes to TS interface
1 parent 27f94c9 commit f468dc1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-form-renderer/src/form-renderer/form-renderer.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentType, FunctionComponent } from 'react';
1+
import { ComponentType, FunctionComponent, ReactNode } from 'react';
22
import { FormProps } from 'react-final-form';
33
import Schema from '../common-types/schema';
44
import 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

2528
declare const FormRenderer: React.ComponentType<FormRendererProps>;

0 commit comments

Comments
 (0)