From 3ddc3793f7bc567072db3502d94c0afb831d5557 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Fri, 23 Jul 2021 13:20:26 -0400 Subject: [PATCH] fix: fix type signature of `Form.errors/2` --- lib/ash_phoenix/form/form.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ash_phoenix/form/form.ex b/lib/ash_phoenix/form/form.ex index de77ce7..cf69b69 100644 --- a/lib/ash_phoenix/form/form.ex +++ b/lib/ash_phoenix/form/form.ex @@ -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)