@@ -58,9 +58,9 @@ export class EventStore extends IEventStore {
5858 }
5959
6060 /** @inheritdoc */
61- commit ( event : any , eventSourceId : EventSourceId | string , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > ;
61+ commit ( event : any , eventSourceId : EventSourceId | Guid | string , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > ;
6262 commit ( eventOrEvents : UncommittedEvent | UncommittedEvent [ ] , cancellation ?: Cancellation ) : Promise < CommitEventsResult > ;
63- commit ( eventOrEvents : any , eventSourceIdOrCancellation ?: EventSourceId | string | Cancellation , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > {
63+ commit ( eventOrEvents : any , eventSourceIdOrCancellation ?: EventSourceId | Guid | string | Cancellation , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > {
6464 if ( this . isUncommittedEventOrEvents ( eventOrEvents ) ) {
6565 return this . commitInternal ( this . asArray ( eventOrEvents ) , eventSourceIdOrCancellation as Cancellation ) ;
6666 }
@@ -69,16 +69,16 @@ export class EventStore extends IEventStore {
6969 }
7070
7171 /** @inheritdoc */
72- commitPublic ( event : any , eventSourceId : EventSourceId | string , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > {
72+ commitPublic ( event : any , eventSourceId : EventSourceId | Guid | string , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitEventsResult > {
7373 const events : UncommittedEvent [ ] = [ this . toUncommittedEvent ( event , eventSourceId , eventType , true ) ] ;
7474 return this . commitInternal ( events , cancellation ) ;
7575 }
7676
7777 /** @inheritdoc */
7878 /** @inheritdoc */
79- commitForAggregate ( event : any , eventSourceId : EventSourceId | string , aggregateRootId : AggregateRootId , expectedAggregateRootVersion : AggregateRootVersion , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitAggregateEventsResult > ;
79+ commitForAggregate ( event : any , eventSourceId : EventSourceId | Guid | string , aggregateRootId : AggregateRootId , expectedAggregateRootVersion : AggregateRootVersion , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitAggregateEventsResult > ;
8080 commitForAggregate ( events : UncommittedAggregateEvents , cancellation ?: Cancellation ) : Promise < CommitAggregateEventsResult > ;
81- commitForAggregate ( eventOrEvents : any , eventSourceIdOrCancellation ?: EventSourceId | string | Cancellation , aggregateRootId ?: AggregateRootId , expectedAggregateRootVersion ?: AggregateRootVersion , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitAggregateEventsResult > {
81+ commitForAggregate ( eventOrEvents : any , eventSourceIdOrCancellation ?: EventSourceId | Guid | string | Cancellation , aggregateRootId ?: AggregateRootId , expectedAggregateRootVersion ?: AggregateRootVersion , eventType ?: EventType | EventTypeId | Guid | string , cancellation ?: Cancellation ) : Promise < CommitAggregateEventsResult > {
8282 if ( this . isUncommittedAggregateEvents ( eventOrEvents ) ) {
8383 return this . commitAggregateInternal ( eventOrEvents , eventSourceIdOrCancellation as Cancellation ) ;
8484 }
@@ -193,7 +193,7 @@ export class EventStore extends IEventStore {
193193 return new CommittedAggregateEvents ( eventSourceId , aggregateRootId , ...convertedEvents ) ;
194194 }
195195
196- private toUncommittedEvent ( content : any , eventSourceId : EventSourceId | string , eventTypeOrId ?: EventType | EventTypeId | Guid | string , isPublic = false ) : UncommittedEvent {
196+ private toUncommittedEvent ( content : any , eventSourceId : EventSourceId | Guid | string , eventTypeOrId ?: EventType | EventTypeId | Guid | string , isPublic = false ) : UncommittedEvent {
197197 let eventType : EventType | EventTypeId | undefined ;
198198 if ( eventTypeOrId !== undefined ) {
199199 if ( eventTypeOrId instanceof EventType ) eventType = eventTypeOrId ;
0 commit comments