Skip to content

Commit c03f232

Browse files
committed
fix: fix type that about form touched
1 parent 5e8e263 commit c03f232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export type FieldArrayValidator<Value extends Array<any>> = (
1515
export type FormTouched<Values> = {
1616
[K in keyof Values]?: Values[K] extends any[]
1717
? Values[K][number] extends object
18-
? FormTouched<Values[K][number]>[]
19-
: boolean
18+
? FormTouched<Values[K][number]>[] | boolean
19+
: boolean | boolean[]
2020
: Values[K] extends object
2121
? FormTouched<Values[K]>
2222
: boolean;

0 commit comments

Comments
 (0)