Binds a validator to the given path that requires the value to be less than or equal to the given maxValue. This function can only be called on number paths. In addition to binding a validator, this function adds MAX property to the field.
API
function max<TPathKind extends PathKind = PathKind.Root>(
path: SchemaPath<string | number | null, 1, TPathKind>,
maxValue:
| number
| LogicFn<string | number | null, number | undefined, TPathKind>,
config?: BaseValidatorConfig<string | number | null, TPathKind> | undefined,
): void;