0.0.36 • Published 3 years ago

@cuser/validator v0.0.36

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Status

codecov npm npm-downloads

@cuser/validator

Index

Classes

Functions

Functions

createValidator

ConstcreateValidator(schema: any): validate

Defined in validator.js:34

Creates a validator which raise a ValidationError when the object doesn't fit the schema

Parameters:

NameTypeDescription
schemaany

Returns: validate

Class: ValidationError

Validator error class with nested errors

Hierarchy

  • Error

    ValidationError

Index

Constructors

Constructors

constructor

+ new ValidationError(message: any, validator: ValidateFunction, value: any): ValidationError

Defined in validator.js:15

Parameters:

NameType
messageany
validatorValidateFunction
valueany

Returns: ValidationError

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.12

3 years ago

0.0.8

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago