Features
- Support arbitrary length intersections (#165)
- Support arbitrary length tuples (#168)
- Support arbitrary length unions (#166)
- Support arbitrary length contracts (#202)
- Support arbitrary length async contracts (#203)
- Support symbol-keyed properties of object validation (#204)
- Provide descriptive error messages (#209)
Bug Fixes
BREAKING CHANGES
- the various
Intersect2
,Intersect3
, ... types have all been replaced with a singleIntersect
type that takes a tuple of Runtype validators. - the various
Tuple2
,Tuple3
, ... types have all been replaced with a singleTuple
type that takes a tuple of Runtype validators. - the various
Union2
,Union3
, ... types have all been replaced with a singleUnion
type that takes a tuple of Runtype validators. - the various
Contract2
,Contract3
, ... types have all been replaced with a singleContract
type that takes a tuple of Runtype meaning parameters and a Runtype meaning a return type - the various
AsyncContract2
,AsyncContract3
, ... types have all been replaced with a singleAsyncContract
type that takes a tuple of Runtype meaning parameters and a Runtype meaning a return type ofPromise
. Dictionary
now does not look over non-enumerable properties of tested objects, andRecord
now does not recognize inherited properties of passed schema