@eveble/eveble
Hierarchy
- SnapshotStorage
Implemented by
Index
Methods
Methods
findById
▸ findById(EventSourceableType
: EventSourceableType, eventSourceableId
: string | Stringifiable): Promise‹EventSourceable | undefined›
Parameters:
Name | Type |
---|---|
EventSourceableType | EventSourceableType |
eventSourceableId | string | Stringifiable |
Returns: Promise‹EventSourceable | undefined›
▸ findById(EventSourceableType
: EventSourceableType, eventSourceableId
: string | Stringifiable): Promise‹EventSourceable | undefined›
Parameters:
Name | Type |
---|---|
EventSourceableType | EventSourceableType |
eventSourceableId | string | Stringifiable |
Returns: Promise‹EventSourceable | undefined›
save
▸ save(eventSourceable
: EventSourceable): Promise‹string | undefined›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
Returns: Promise‹string | undefined›
▸ save(eventSourceable
: EventSourceable): Promise‹string | undefined›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
Returns: Promise‹string | undefined›
update
▸ update(eventSourceable
: EventSourceable, lastSnapshot?
: EventSourceable): Promise‹boolean›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
lastSnapshot? | EventSourceable |
Returns: Promise‹boolean›
▸ update(eventSourceable
: EventSourceable, lastSnapshot?
: EventSourceable): Promise‹boolean›
Parameters:
Name | Type |
---|---|
eventSourceable | EventSourceable |
lastSnapshot? | EventSourceable |
Returns: Promise‹boolean›