File tree 3 files changed +7
-3
lines changed
packages/react-form-renderer/src
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
export * from './any-object' ;
2
+ export * from './no-index' ;
2
3
export { default as ComponentMapper } from './component-mapper' ;
3
4
export * from './component-mapper' ;
4
5
export { default as Field } from './field' ;
@@ -7,4 +8,4 @@ export * from './form-template-render-props';
7
8
export { default as SchemaValidatorMapper } from './schema-validator-mapper' ;
8
9
export * from './schema-validator-mapper' ;
9
10
export { 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';
6
6
import { ActionMapper } from './action-mapper' ;
7
7
import SchemaValidatorMapper from '../common-types/schema-validator-mapper' ;
8
8
import { FormTemplateRenderProps } from '../common-types/form-template-render-props' ;
9
- import { AnyObject } from '../common-types/any-object ' ;
9
+ import { NoIndex } from '../common-types/no-index ' ;
10
10
11
11
export interface FormRendererProps <
12
12
FormValues = Record < string , any > ,
13
13
InitialFormValues = Partial < FormValues > ,
14
14
FormTemplateProps extends FormTemplateRenderProps = FormTemplateRenderProps
15
- > extends Omit < FormProps < FormValues , InitialFormValues > , 'onSubmit' > {
15
+ > extends Omit < NoIndex < FormProps < FormValues , InitialFormValues > > , 'onSubmit' | 'children '> {
16
16
initialValues ?: InitialFormValues ;
17
17
onCancel ?: ( values : FormValues , ...args : any [ ] ) => void ;
18
18
onReset ?: ( ) => void ;
You can’t perform that action at this time.
0 commit comments