Closed msimonborg closed 5 years ago
Good catch, thanks for reporting!
Could you check if #32 fixes it for you?
It works! I suppose if you wanted more specific error typing it would be {:error, Neuron.Response.t() | Neuron.JSONParseError.t()}
, but the current solution works well enough for me.
Thanks!
Nice! 🎉 actually yeah, there's no need to be more generic, so I'll switch it to that and release it
Thank you!
The typespec on
Neuron.query/3
states a return value ofNeuron.Response.t()
, but dialyzer blows up on this. The correct return type should be something like{:ok, Neuron.Response.t()} | {:error, response :: term}