kivra / restclient

Erlang Rest Client
MIT License
95 stars 49 forks source link

erlsom:simple_form/0 is not defined upstream #47

Open chiroptical opened 1 year ago

chiroptical commented 1 year ago

https://github.com/kivra/restclient/blob/e5df6d6736afedbb58ecd8681202bf2fe8637c12/src/restc.erl#L62

I was messing with https://github.com/josefs/Gradualizer and it throws an error that this type doesn't exist.

Undefined remote type erlsom:simple_form/0

Unsure what type is supposed to be here, if any. Can PR with a bit more information

cfclavijo commented 8 months ago

I guess it refers to State = the result of the last invocation of the callback function) erlsom does not provide a declared/explicit type other than what the documentation offers, so it would be term()

chiroptical commented 5 months ago

I found this https://github.com/willemdj/erlsom/blob/583f4e3ee6a33dccb0e127a1ff37ed02e64c7cc0/src/erlsom.erl#L307-L308. I suppose you could define this type locally and use it.

chiroptical commented 5 months ago

I'll make a PR for that if you are interested.