Abstract class representing Spec, the main specification of perusal-immutable. Declares the abstract method assert and explain which is used by the utility methods ofr validity checking and specification assertion on a given value.
Spec
Asserts this spec on a given value.
Error on call - subclasses should all implement the assert method.
assert
The value to be asserted.
Expplains why a given value passes/fails this spec.
Error on call - subclasses should all implement the explain method.
explain
The path travelled to this spec.
Generated using TypeDoc
Abstract class representing
Spec
, the main specification of perusal-immutable. Declares the abstract method assert and explain which is used by the utility methods ofr validity checking and specification assertion on a given value.