@santi100/assertion-lib
Advanced tools
Changelog
Version 2.0.0 (MAJOR VERSION; BREAKING CHANGES!)
assertType
.assertOneOf
's shallow
parameter with comparator
to remove reliance on @santi100/equal-lib
.export =
for all individual module files, whilst keeping compatibility.Changelog
Version 1.0.8
assertInstanceOf
, assertMaxExclusive
and assertMinExclusive
.randomFromArray
to make sure TypeScript enforces there's at least one element in the input array.Changelog
Version 1.0.7
assertMax
, assertMin
and assertRange
to throw RangeError
s instead of TypeError
s.assertArray
.Changelog
Version 1.0.6
assertTypeOf
, assertOneOf
, assertInteger
, assertMin
, assertMax
and assertRange
.