@deckchair-technicians/vice
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

build status npm version

Why?

  • Schema and class are defined in the same place
  • Less noisy and verbose that field decorators
  • Schema can be separated from the class, and created without a class
  • Type safety ensure schema output matches intended field type
  • Provide some reassurance that if x instanceof SomeDataClass, then x conforms to the schema of SomeClass. Removes the need to consider whether x needs to be validated again.

How to run the tests in WebStorm

Remember to add --require require-ts-node.js to Extra Mocha Options in the runner config screen

Readme

Keywords

none

Package Sidebar

Install

npm i @deckchair-technicians/vice

Weekly Downloads

109

Version

0.1.9

License

none

Unpacked Size

579 kB

Total Files

159

Last publish

Collaborators

  • david.williams
  • savageatwork