From 2ee88692d2e3d6b54c3e2a101f18856f7eecc9e4 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 26 Mar 2019 19:01:11 -0700 Subject: [PATCH] Provide missing typespec --- lib/commanded/commands/router.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/commanded/commands/router.ex b/lib/commanded/commands/router.ex index ced50195..b420cceb 100644 --- a/lib/commanded/commands/router.ex +++ b/lib/commanded/commands/router.ex @@ -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}