Function: value()
value(klass, properties)
value<
C
,P
>(klass
:Newable
<C
>,properties
?:NonEmptyObject
<P
>):Property
<P
>
Adds a value object property to the entity and allows for configuration of the property.
Type Parameters
Type Parameter |
---|
C extends object |
P extends Properties <C > |
Parameters
Parameter | Type | Description |
---|---|---|
klass | Newable <C > | The value object class. |
properties ? | NonEmptyObject <P > | The properties of the value object. |
Returns
Property
<P
>
Defined in
packages/verse-core/src/model/builder.ts:853
value(valueObjectModel, properties)
value<
O
,P
>(valueObjectModel
:ValueObjectModel
<any
>,properties
?:NonEmptyObject
<P
>):Property
<P
>
Type Parameters
Type Parameter |
---|
O extends object |
P extends Properties <O > |
Parameters
Parameter | Type |
---|---|
valueObjectModel | ValueObjectModel <any > |
properties ? | NonEmptyObject <P > |
Returns
Property
<P
>