Open chevinbrown opened 3 years ago
Typespecs are too strict for nested template data:
@spec add_dynamic_template_data(t, String.t(), String.t() || map()) :: t
My usage:
|> Email.add_dynamic_template_data("item_title", item.title) |> Email.add_dynamic_template_data("list_of_things", [ %{"id" => item} ])
This should probably be more permissive?
I've created a PR for this issue https://github.com/alexgaribay/sendgrid_elixir/pull/45
WDYT ? @alexgaribay
Typespecs are too strict for nested template data:
My usage:
This should probably be more permissive?