4.0.0 • Published 2 years ago

@zthun/works.class v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Description

Zthunworks class package is an extension for class-validator that contains additional validation decorators.

Installation

# NPM
npm install class-validator
npm install @zthun/works.class
# Yarn
yarn add class-validator
yarn add @zthun/works.class

Usage

In addition to the validations provided to you by class-validator, you will also receive the following decorators.

ModuleDescription
IsDataUriLimitChecks the contents of the data uri property and makes sure the actual data portion is limited to a specific size.
IsDataUriTypeChecks the mime-type of the data uri to make sure it falls into a list of supported types.
EqualsOtherPropertyChecks to make sure that the target property equals another property on the same object.
RequiresOtherPropertyChecks to make sure that in addition to the target property, another property is defined.
IsNotWhiteSpaceChecks to make sure that a string is not pure white space.
4.0.0

2 years ago

3.0.2

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.0

3 years ago

1.0.0

3 years ago

1.0.0-29

3 years ago

1.0.0-24

3 years ago

1.0.0-22

3 years ago

1.0.0-17

4 years ago

1.0.0-16

4 years ago