Search
Preparing search index...
The search index is not available
js-value-object
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
js-value-object
ValueObject
Class ValueObject<T>
Type parameters
T
Hierarchy
ValueObject
DateValueObject
NumberValueObject
StringValueObject
UniqueEntityIdValueObject
Index
Constructors
constructor
Properties
name
value
Accessors
is
Valid
Methods
is
Equal
or
Fail
validate
Constructors
Protected
constructor
new
Value
Object
<
T
>
(
__namedParameters
:
IValueObjectProps
<
T
>
)
:
ValueObject
<
T
>
Type parameters
T
Parameters
__namedParameters:
IValueObjectProps
<
T
>
Returns
ValueObject
<
T
>
Properties
Readonly
name
name
:
string
Readonly
value
value
:
T
Accessors
is
Valid
get
isValid
(
)
:
boolean
Returns
boolean
Methods
Abstract
is
Equal
is
Equal
(
vo
:
ValueObject
<
unknown
>
)
:
boolean
Parameters
vo:
ValueObject
<
unknown
>
Returns
boolean
or
Fail
or
Fail
(
)
:
ValueObject
<
T
>
description
Throw exception if the value objects are invalid
Returns
ValueObject
<
T
>
Protected
Abstract
validate
validate
(
)
:
boolean
Returns
boolean
Exports
Value
Object
constructor
name
value
is
Valid
is
Equal
or
Fail
validate
Generated using
TypeDoc
Throw exception if the value objects are invalid