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)
}