Skip to content

Commit

Permalink
typos/fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Sep 28, 2023
1 parent 2c2286d commit ed4e24f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,11 @@ module Fold =
module Snapshot =
let generate (state: State): Event =
let generate (state: State): Events.Event =
Events.Snapshotted { ... }
let isOrigin = function
| Events.Snapshotted -> true
| _ -> false
let isOrigin = function Events.Snapshotted -> true | _ -> false
let config = isOrigin, generate
let hydrate (e: Snapshotted): State = ...
let hydrate (e: Events.Snapshotted): State = ...
let private evolve state = function
| Events.Snapshotted e -> Snapshot.hydrate e
Expand All @@ -404,13 +402,13 @@ module Fold =
module Decisions =
let interpretX ... (state: Fold.State): Events list = ...
let interpretX ... (state: Fold.State): Events.Event[] = ...
type Decision =
| Accepted
| Failed of Reason
let decideY ... (state: Fold.State): Decision * Events list = ...
let decideY ... (state: Fold.State): Decision * Events.Event[] = ...
```

- `interpret`, `decide` _and related input and output types / interfaces_ are
Expand Down

0 comments on commit ed4e24f

Please sign in to comment.