Stacks
Examples
GitHub
Contribute
Preparing search index...
@ask-ell/ddd
IAggregateRoot
Interface IAggregateRoot<EntityState>
interface
IAggregateRoot
<
EntityState
extends
AggregateRootState
>
{
getSnapshot
()
:
EntityState
;
updateAndCheckStateValidity
(
settingFunction
:
(
oldState
:
EntityState
)
=>
Partial
<
EntityState
>
,
)
:
void
;
}
Type Parameters
EntityState
extends
AggregateRootState
Hierarchy (
View Summary
)
IEntity
<
EntityState
>
IAggregateRoot
Implemented by
AggregateRoot
Index
Methods
get
Snapshot
update
And
Check
State
Validity
Methods
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
Methods
get
Snapshot
update
And
Check
State
Validity
Examples
GitHub
Contribute
Stacks
Loading...