@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.9
    1
    • latest

Version History

Package Sidebar

Install

npm i @deckchair-technicians/vice

Weekly Downloads

1

Version

0.1.9

License

none

Unpacked Size

579 kB

Total Files

159

Last publish

Collaborators

  • david.williams
  • savageatwork