Skip to content

Commit 5ef3ee7

Browse files
committed
fix(renderer): export useFieldApiConfig for components.
1 parent 73e3b16 commit 5ef3ee7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-form-renderer/src/files/use-field-api.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from 'react';
2-
import { FieldMetaState, FieldInputProps } from 'react-final-form';
2+
import { FieldMetaState, FieldInputProps, UseFieldConfig } from 'react-final-form';
33
import { AnyObject } from './common';
44

55
export interface ValidatorType extends Object {
@@ -12,6 +12,9 @@ export interface UseFieldApiConfig extends AnyObject {
1212
component: string;
1313
validate?: ValidatorType[];
1414
}
15+
export interface UseFieldApiComponentConfig extends UseFieldConfig<any> {
16+
name: string;
17+
}
1518

1619
export interface UseFieldApiProps<
1720
FieldValue,

0 commit comments

Comments
 (0)