@program-farm/extralib-js-class-validator
v0.0.2
Published
Extra library on class-validator.js
Downloads
1
Maintainers
Readme
Extra Library on class-validator.js
Installation
npm install @program-farm/extralib-js-class-validator class-validator
Example
import {IsSet} from '@program-farm/is-set'
import {validate} from 'class-validator'
class C {
@IsSet()
data: Set<any>
}
async function main() {
const c = new C()
c.data = new Set([1, 2, 3])
await validate(c)
}