Runtime validation for static types
hasKey
utility (#205)readonly
to Union
function (#208)Intersect2
, Intersect3
, ... types have all been replaced with a single Intersect
type that takes a tuple of Runtype validators.Tuple2
, Tuple3
, ... types have all been replaced with a single Tuple
type that takes a tuple of Runtype validators.Union2
, Union3
, ... types have all been replaced with a single Union
type that takes a tuple of Runtype validators.Contract2
, Contract3
, ... types have all been replaced with a single Contract
type that takes a tuple of Runtype meaning parameters and a Runtype meaning a return typeAsyncContract2
, AsyncContract3
, ... types have all been replaced with a single AsyncContract
type that takes a tuple of Runtype meaning parameters and a Runtype meaning a return type of Promise
.Dictionary
now does not look over non-enumerable properties of tested objects, and Record
now does not recognize inherited properties of passed schemadeclaration
option of TS (#196)Optional
runtype (#113)BigInt
runtype (#185)export type
(#177)Add AsyncContract
(#122)
Add cycle breaking sets to InternalRecord
(#123)
Add tuple 0 and make length check exact. (#124)
Add assert to Runtype. Added typecheck script. (#125)
Add documentation for readonly records and arrays (#126)