Skip to content

Commit d574085

Browse files
brikouerikras
authored andcommitted
Fix parse and format TS defs (as not required) (#77)
Please release a fix :)
1 parent 44f0176 commit d574085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export type FormProps = {
6262

6363
export type FieldProps = {
6464
allowNull?: boolean
65-
format: ((value: any, name: string) => any) | null
66-
parse: ((value: any, name: string) => any) | null
65+
format?: ((value: any, name: string) => any) | null
66+
parse?: ((value: any, name: string) => any) | null
6767
name: string
6868
subscription?: FieldSubscription
6969
validate?: (value: any, allValues: object) => any

0 commit comments

Comments
 (0)