UNPKG
vnopts
Version:
latest (2.0.5)
2.0.5
2.0.3
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
validate and normalize options
github.com/ikatyang-collab/vnopts
ikatyang-collab/vnopts
vnopts
/
lib
/
schemas
/
number.js
10 lines
(9 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Schema
}
from
'../schema.js'
;
export
class
NumberSchema
extends
Schema
{
expected
(
) {
return
'a number'
; }
validate
(
value, _utils
) {
return
typeof
value ===
'number'
; } }