mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: fix type signature of Form.errors/2
This commit is contained in:
parent
ae9f5b90f4
commit
3ddc3793f7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue