File: 0.24.8.md

package info (click to toggle)
node-sinclair-typebox 0.34.41-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,948 kB
  • sloc: makefile: 4
file content (6 lines) | stat: -rw-r--r-- 433 bytes parent folder | download
1
2
3
4
5
6
## [0.24.8](https://www.npmjs.com/package/@sinclair/typebox/v/0.24.8)

Added:
- `Value.Cast(T, value)` structurally casts a value into another form while retaining information within the original value.
- `Value.Check(T, value)` provides slow dynamic type checking for values. For performance, one should consider the `TypeCompiler` or `Ajv` validator.
- `Value.Errors(T, value)` returns an iterator of errors found in a given value.