mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix(Ash.Calculation): fix return type for load/3
callback. (#384)
This commit is contained in:
parent
8a32748448
commit
479b09951c
2 changed files with 1 additions and 3 deletions
|
@ -167,8 +167,6 @@ spark_locals_without_parens = [
|
||||||
tenant: 1,
|
tenant: 1,
|
||||||
through: 1,
|
through: 1,
|
||||||
timeout: 1,
|
timeout: 1,
|
||||||
timestamps: 0,
|
|
||||||
timestamps: 1,
|
|
||||||
touches_resources: 1,
|
touches_resources: 1,
|
||||||
trace_name: 1,
|
trace_name: 1,
|
||||||
transaction: 2,
|
transaction: 2,
|
||||||
|
|
|
@ -28,7 +28,7 @@ defmodule Ash.Calculation do
|
||||||
@callback calculate([Ash.Resource.record()], Keyword.t(), map) ::
|
@callback calculate([Ash.Resource.record()], Keyword.t(), map) ::
|
||||||
{:ok, [term]} | [term] | {:error, term} | :unknown
|
{:ok, [term]} | [term] | {:error, term} | :unknown
|
||||||
@callback expression(Keyword.t(), map) :: any
|
@callback expression(Keyword.t(), map) :: any
|
||||||
@callback load(Ash.Query.t(), Keyword.t(), map) :: Keyword.t()
|
@callback load(Ash.Query.t(), Keyword.t(), map) :: atom | [atom] | Keyword.t()
|
||||||
@callback select(Ash.Query.t(), Keyword.t(), map) :: list(atom)
|
@callback select(Ash.Query.t(), Keyword.t(), map) :: list(atom)
|
||||||
|
|
||||||
@optional_callbacks expression: 2, calculate: 3
|
@optional_callbacks expression: 2, calculate: 3
|
||||||
|
|
Loading…
Reference in a new issue