andrewtimberlake / mailroom

Mail handling for Elixir
MIT License
21 stars 18 forks source link

Add dialyzer and type specs to `imap` modules #11

Open emilianobovetti opened 2 years ago

emilianobovetti commented 2 years ago

Hello! I'd like to contribute to the imap client (looking forward to implement the append command), but I'd love to document some of the internals first.

This pr introduces dialyzer/dialyxir and some typespecs to imap** modules. At this point mix dialyzer points out some issues:

I'd like to address these issues in other pull requests, in this way we keep only typespecs and non-functional code in this one.

Let me know if looks good, cheers!