Skip to content

Commit

Permalink
Merge pull request #345 from DomenicDev/readme-constructor-like-function
Browse files Browse the repository at this point in the history
Replacing deprecated factory functions with recommended constructor-like function
  • Loading branch information
idugalic authored Jan 9, 2025
2 parents 8c013a5 + 10692f7 commit 9299bd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ natively requiring zero boilerplate code.
`eventSourcingAggregate` function is a good example:

```kotlin
fun <C, S, E> eventSourcingAggregate(
fun <C, S, E> EventSourcingAggregate(
decider: IDecider<C, S, E>,
eventRepository: EventRepository<C, E>
): EventSourcingAggregate<C, S, E> =
Expand Down Expand Up @@ -298,7 +298,7 @@ natively requiring zero boilerplate code.
`stateStoredAggregate` function is a good example:

```kotlin
fun <C, S, E> stateStoredAggregate(
fun <C, S, E> StateStoredAggregate(
decider: IDecider<C, S, E>,
stateRepository: StateRepository<C, S>
): StateStoredAggregate<C, S, E> =
Expand Down Expand Up @@ -430,7 +430,7 @@ natively requiring zero boilerplate code.
`materializedView` function is a good example:

```kotlin
fun <S, E> materializedView(
fun <S, E> MaterializedView(
view: IView<S, E>,
viewStateRepository: ViewStateRepository<E, S>,
): MaterializedView<S, E> =
Expand Down Expand Up @@ -574,7 +574,7 @@ natively requiring zero boilerplate code.
`sagaManager` function is a good example:

```kotlin
fun <AR, A> sagaManager(
fun <AR, A> SagaManager(
saga: ISaga<AR, A>,
actionPublisher: ActionPublisher<A>
): SagaManager<AR, A> =
Expand Down

0 comments on commit 9299bd7

Please sign in to comment.