mobx-class-transformer-validator
A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API.
Installation
Module installation
npm install mobx-class-transformer-validator --save
(or the short way):
npm i -S mobx-class-transformer-validator
Peer dependencies
This package is only a simple plugin/wrapper, so you have to install the required modules too because it can't work without them. See detailed installation instruction for the modules installation:
Usage
The usage of this module is very simple.
;; ; // transform the JSON to class instance and validate it correctnesstransformAndValidateUserDto, UserModel .then .catch;