Skip to content

Commit

Permalink
Small cleanup to workflow example
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jan 28, 2024
1 parent 183b7a3 commit 2d417bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions samples/hotelManagement/src/core/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export type WorkflowCommand<Output extends Command | Event> = Extract<
{ __brand?: 'Command' }
>;

export type Reply = Command | Event;

export type WorkflowOutput<TOutput extends Command | Event> =
| { kind: 'Reply'; message: TOutput }
| { kind: 'Send'; message: WorkflowCommand<TOutput> }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export enum IgnoredReason {
export type ErrorReason = 'UnknownInputType';

////////////////////////////////////////////
////////// Evolve
////////// Decide
///////////////////////////////////////////

export const decide = (
Expand Down Expand Up @@ -238,6 +238,10 @@ export const decide = (
}
};

////////////////////////////////////////////
////////// Evolve
///////////////////////////////////////////

export const evolve = (
state: GroupCheckout,
{
Expand Down

0 comments on commit 2d417bd

Please sign in to comment.