Skip to content

Commit

Permalink
Provide missing typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Martin committed Mar 27, 2019
1 parent 6f880d1 commit 2ee8869
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/commanded/commands/router.ex
Expand Up @@ -447,6 +447,8 @@ defmodule Commanded.Commands.Router do
"""
@spec dispatch(command :: struct) ::
:ok
| {:ok, execution_result :: Commanded.Commands.Dispatcher.ExecutionResult.t()}
| {:ok, aggregate_version :: integer}
| {:error, :unregistered_command}
| {:error, :consistency_timeout}
| {:error, reason :: term}
Expand Down

0 comments on commit 2ee8869

Please sign in to comment.