mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
chore: set typespec to proper return value
This commit is contained in:
parent
39b143e19e
commit
b4766d1ccc
1 changed files with 2 additions and 2 deletions
|
@ -374,8 +374,8 @@ defmodule Ash.Resource.Info do
|
|||
@doc """
|
||||
Gets the type of an aggregate for a given resource.
|
||||
"""
|
||||
@spec aggregate_type(Ash.Resource.t(), Ash.Resource.Aggregate.t() | atom) ::
|
||||
Ash.Type.t()
|
||||
@spec aggregate_type(Spark.Dsl.t() | Ash.Resource.t(), Ash.Resource.Aggregate.t() | atom) ::
|
||||
{:ok, Ash.Type.t()} | {:error, String.t()}
|
||||
def aggregate_type(resource, aggregate) when is_atom(aggregate) do
|
||||
aggregate_type(resource, aggregate(resource, aggregate))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue