File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
packages/react-form-renderer/src Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11export * from './any-object' ;
2+ export * from './no-index' ;
23export { default as ComponentMapper } from './component-mapper' ;
34export * from './component-mapper' ;
45export { default as Field } from './field' ;
@@ -7,4 +8,4 @@ export * from './form-template-render-props';
78export { default as SchemaValidatorMapper } from './schema-validator-mapper' ;
89export * from './schema-validator-mapper' ;
910export { default as Schema } from './schema' ;
10- export { FieldInputProps as Input } from 'react-final-form'
11+ export { FieldInputProps as Input } from 'react-final-form' ;
Original file line number Diff line number Diff line change 1+ export type NoIndex < T > = {
2+ [ K in keyof T as { } extends Record < K , 1 > ? never : K ] : T [ K ] ;
3+ } ;
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import { ValidatorMapper } from '../validator-mapper';
66import { ActionMapper } from './action-mapper' ;
77import SchemaValidatorMapper from '../common-types/schema-validator-mapper' ;
88import { FormTemplateRenderProps } from '../common-types/form-template-render-props' ;
9- import { AnyObject } from '../common-types/any-object ' ;
9+ import { NoIndex } from '../common-types/no-index ' ;
1010
1111export interface FormRendererProps <
1212 FormValues = Record < string , any > ,
1313 InitialFormValues = Partial < FormValues > ,
1414 FormTemplateProps extends FormTemplateRenderProps = FormTemplateRenderProps
15- > extends Omit < FormProps < FormValues , InitialFormValues > , 'onSubmit' > {
15+ > extends Omit < NoIndex < FormProps < FormValues , InitialFormValues > > , 'onSubmit' | 'children '> {
1616 initialValues ?: InitialFormValues ;
1717 onCancel ?: ( values : FormValues , ...args : any [ ] ) => void ;
1818 onReset ?: ( ) => void ;
You can’t perform that action at this time.
0 commit comments