the actual value of this ValueObject
Static
createa Result
with the created OptionalString
to create the OptionalString of
Optional
options: OptionalStringOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created OptionalStrings
an array of primitives to map to an array of OptionalStrings
Optional
options: OptionalStringOptions & ListCreationOptionsconstraints the values / list has to fulfill
Static
listcompares 2 Lists of ValueObjects / values on equality
true if the lists are equal
the list of ValueObjects to compare with
a list of ValueObjects / values for comparison
Static
tothe array of values
an array of OptionalStrings to map to an array of their values
Static
validatethe value if the validation was successful
if not a string (when defined)
if the value is not matching the regex (when defined)
if the value is not inside the interval (when defined)
to be validated as a string with the corresponding constraints (options)
Optional
options: OptionalStringOptionsGenerated using TypeDoc
A String that can be also created from either
""
orundefined
undefined
ends up being converted to""
Example
Fails