Returns a deep copy of value
.
The value to clone, trusted to be compatible with this type.
A deep copy of the supplied value, restricted to the properties of this type.
Tests if left
is equal to value
.
This is a deep strict structural equality test restricted to the properties of this type.
It satisfies the following properties (the variables a
, b
and c
are valid values):
type.equal(a, a) === true
type.equals(a, b) === type.equals(b, a)
type.equals(a, b) && type.equals(b, c)
then type.equals(a, c)
The above properties mean that type objects implement the Setoid
algebra as specified by
Static Land.
Left value, trusted to be compatible with this type.
Right value, trusted to be compatible with this type.
Boolean indicating if both values are equal.
Compares two valid values.
Left operand, a valid value.
Right operand, a valid value.
Boolean indicating if left <= right
is true.
Tests if this type matches value
.
The value to test against this type.
Boolean indicating if this type matches value
.
Tests if this type matches value
, describes the error if not.
The value to test against this type.
If this type matches value
then undefined
; otherwise an error describing why this
type does not match value
.
Generated using TypeDoc
Name of this type. This is only used to help with debugging.