Skip to content

Commit 895763f

Browse files
authored
Revert "Fix typescript typings in FieldProps (#619)" (#679)
This reverts commit 762b122.
1 parent 141b5f9 commit 895763f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typescript/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ export interface UseFieldConfig<FieldValue> {
7777
allowNull?: boolean;
7878
beforeSubmit?: () => void | boolean;
7979
defaultValue?: FieldValue;
80-
format?: (value: any, name: string) => any;
80+
format?: (value: FieldValue, name: string) => any;
8181
formatOnBlur?: boolean;
8282
initialValue?: FieldValue;
8383
isEqual?: (a: any, b: any) => boolean;
8484
multiple?: boolean;
85-
parse?: (value: FieldValue, name: string) => FieldValue;
85+
parse?: (value: any, name: string) => FieldValue;
8686
subscription?: FieldSubscription;
8787
type?: string;
8888
validate?: FieldValidator<FieldValue>;

0 commit comments

Comments
 (0)