Skip to content

Commit

Permalink
Fix for retirement_reason spec. (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira authored Jun 28, 2024
1 parent 6fec894 commit de9b8c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hex_api_release.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
unretire/3
]).

-export_type([publish_params/0, retirement_params/0, retirement_reason/0]).
-export_type([publish_params/0, retirement_params/0]).

-type publish_params() :: [{replace, boolean()}].

-type retirement_reason() :: other | invalid | security | deprecated | renamed.

-type retirement_params() :: #{reason := retirement_reason(), message => binary()}.
-type retirement_params() :: #{binary() := binary()}.
%% @doc
%% Gets a package release.
%%
Expand Down

0 comments on commit de9b8c9

Please sign in to comment.