UNPKG
@codeparticle/formal
Version:
latest (2.0.1)
2.0.1
2.0.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.4.6
0.4.4
0.4.3
0.4.2
0.4.0
0.3.0
0.2.1
0.1.0
0.0.7
0.0.6
0.0.3
0.0.0
A <2kb library for validating data of any kind
github.com/codeparticle/formal
codeparticle/formal
@codeparticle/formal
/
rules
/
less-than.d.ts
10 lines
(7 loc)
•
242 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
ValidationRule
}
from
'../types/index.js'
;
/** * Rule to validate a number that must be less than some amount. *
@param
{
Number
}
max
- Maximum value. */
declare
const
lessThan
:
(
max
:
any
) =>
ValidationRule
;
export
{ lessThan };