API ReferenceValidationFunction
optionalNonZeroAddressRule()
function optionalNonZeroAddressRule<P, Field>(field): ValidationRule<P>;Rule factory: allows an omitted address but rejects invalid or zero values.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
P | - | - |
Field extends string | keyof P & string | The exact string key of P validated by this factory. |
Parameters
| Parameter | Type |
|---|---|
field | Field |