Type representing a validator function (may be sync or async).
typedef ValidatorFunction<T extends Result> = FutureOr<T> Function(dynamic value);