fix: fix type signature of Form.errors/2

This commit is contained in:
Zach Daniel 2021-07-23 13:20:26 -04:00
parent ae9f5b90f4
commit 3ddc3793f7

View file

@ -968,7 +968,8 @@ defmodule AshPhoenix.Form do
#{Ash.OptionsHelpers.docs(@errors_opts)}
"""
@spec errors(t(), Keyword.t()) :: [{atom, {String.t(), Keyword.t()}}] | [String.t()]
@spec errors(t(), Keyword.t()) ::
[{atom, {String.t(), Keyword.t()}}] | [String.t()] | [{atom, String.t()}]
def errors(form, opts \\ []) do
opts = validate_opts_with_extra_keys(opts, @errors_opts)