mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
chore: fix typespecs and format
This commit is contained in:
parent
582b16476d
commit
8f1217ea03
2 changed files with 10 additions and 2 deletions
10
lib/ash.ex
10
lib/ash.ex
|
@ -1570,11 +1570,19 @@ defmodule Ash do
|
|||
end
|
||||
end
|
||||
|
||||
@type record_or_records :: Ash.Resource.record() | [Ash.Resource.record()]
|
||||
|
||||
@doc """
|
||||
Load fields or relationships on already fetched records. See `load/3` for more information.
|
||||
"""
|
||||
@spec load!(
|
||||
record_or_records :: Ash.Resource.record() | [Ash.Resource.record()],
|
||||
record_or_records ::
|
||||
record_or_records
|
||||
| {:ok, record_or_records}
|
||||
| :error
|
||||
| {:error, term}
|
||||
| :ok
|
||||
| Ash.Page.page(),
|
||||
query :: load_statement(),
|
||||
opts :: Keyword.t()
|
||||
) ::
|
||||
|
|
|
@ -773,7 +773,7 @@ defmodule Ash.Actions.Helpers do
|
|||
if Enumerable.impl_for(results) do
|
||||
Enum.map(results, &select(&1, query))
|
||||
else
|
||||
results
|
||||
results
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue