fix: spec + dialyzer fixes

This commit is contained in:
Zach Daniel 2020-08-25 01:05:29 -04:00
parent 9ed9f82087
commit 3b1bde6a39
No known key found for this signature in database
GPG key ID: C377365383138D4B
2 changed files with 2 additions and 1 deletions

View file

@ -438,7 +438,6 @@ defmodule Ash.Api do
end
@doc false
@spec update!(Ash.api(), Ash.changeset(), Keyword.t()) :: Ash.resource() | no_return()
def update!(api, changeset, opts) do
opts = NimbleOptions.validate!(opts, @update_opts_schema)

View file

@ -48,6 +48,8 @@ defmodule Ash.Resource do
@doc false
alias Ash.Dsl.Extension
@type t :: %__MODULE__{}
Module.register_attribute(__MODULE__, :is_ash_resource, persist: true, accumulate: false)
@is_ash_resource true