Stacks
Examples
GitHub
Contribute
Preparing search index...
@ask-ell/ddd
AggregateRoot
Class AggregateRoot<EntityState>
Abstract
Type Parameters
EntityState
extends
AggregateRootState
Hierarchy (
View Summary
)
Entity
<
EntityState
>
AggregateRoot
Implements
IAggregateRoot
<
EntityState
>
Index
Constructors
constructor
Methods
check
State
Validity
get
Snapshot
update
And
Check
State
Validity
Constructors
constructor
new
AggregateRoot
<
EntityState
extends
{
id
:
string
}
>
(
state
:
EntityState
,
)
:
AggregateRoot
<
EntityState
>
Type Parameters
EntityState
extends
{
id
:
string
}
Parameters
state
:
EntityState
Returns
AggregateRoot
<
EntityState
>
Methods
Protected
Abstract
check
State
Validity
checkStateValidity
(
newState
:
EntityState
)
:
IResult
Parameters
newState
:
EntityState
Returns
IResult
get
Snapshot
getSnapshot
()
:
EntityState
Returns
EntityState
update
And
Check
State
Validity
updateAndCheckStateValidity
(
settingFunction
:
(
oldState
:
EntityState
)
=>
Partial
<
EntityState
>
,
)
:
void
Parameters
settingFunction
:
(
oldState
:
EntityState
)
=>
Partial
<
EntityState
>
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
check
State
Validity
get
Snapshot
update
And
Check
State
Validity
Examples
GitHub
Contribute
Stacks
Loading...