1.15.0 • Published 6 years ago

@anyhowstep/data-validation v1.15.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Goals

  • Type checks with enumerated error codes
  • String format type checks
  • Array type checks
  • Type guards (x is Type)
  • Type assertions (assert x is Type and return; otherwise, throw)
  • Customizable error messages (ErrorMessageService.Map = /*Custom error code to error message format*/;)
  • Promise-based API available

Non-Goals

  • Performance is not a goal; we are stressing safety, and usability over performance.

Promise-based API

While all type guards, and domain checks are synchronous, a promise-based API may be desirable when wanting to validate a large number of conditions, and using a final catch() to handle errors.

1.15.0

6 years ago

1.14.0

6 years ago

1.13.0

6 years ago

1.12.0

6 years ago

1.11.0

6 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.6.0

6 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago