@program-farm/extralib-js-class-validator
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @program-farm/extralib-js-class-validator

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

4.48 kB

Total Files

8

Last publish

Collaborators

  • terry.joo