Runtime validation for static types
Fixes issue with circularity detection in show()
(#108)
Improve performance by using pure guard function as the primitive type checking operation rather than exceptions (#99)
Remove reflect-metadata
dependency and simplify @checked
decorator code (#101)
Big thanks to @justingrant for the major contributions in this release:
Constraint
to have a custom name and/or a custom static type (#78)
withGuard
for producing runtypes from type guardsConstraint
's args
parameter moved to within options
parameter (this likely does not affect many users)isReadonly
flag to Array and Record runtypes (#80)Make ValidationError
public (#59)
Fix bug with @checked
(#72)
Replace Always
with Unknown
Add @checked
decorator (#71)