diff --git a/src/Field.tsx b/src/Field.tsx index 061654c7..893d4f60 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -27,7 +27,7 @@ import { } from './utils/valueUtil'; export type ShouldUpdate = - | true + | boolean | ((prevValues: Store, nextValues: Store, info: { source?: string }) => boolean); function requireUpdate(