Skip to content

Commit

Permalink
Replacing deprecated factory functions with recommended constructor-l…
Browse files Browse the repository at this point in the history
…ike function
  • Loading branch information
DomenicDev committed Jan 9, 2025
1 parent 8c013a5 commit 10692f7
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 10692f7

Please sign in to comment.