Home > @skunkteam/types > NumberTypeConfig
Configuration of additional checks on numeric types.
Signature:
type NumberTypeConfig = {
multipleOf?: number;
customMessage?: CustomMessage<number, NumberViolation[]> | Partial<Record<NumberViolation, CustomMessage<number, NumberViolation>>>;
} & (
| {
minExclusive?: number;
min?: undefined;
}
| {
minExclusive?: undefined;
min?: number;
}
) &
(
| {
maxExclusive?: number;
max?: undefined;
}
| {
maxExclusive?: undefined;
max?: number;
}
);
References: CustomMessage, NumberViolation