API ReferenceValidationFunction
nonZeroAddressRules()
function nonZeroAddressRules<P, Field>(field): ValidationRule<P>[];Rule factory: requires a syntactically valid, non-zero EVM address.
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 |
Returns
ValidationRule<P>[]