Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Aug 20, 2023
1 parent efc39c5 commit 8da6cb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/mime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,15 @@ defmodule MIME do
@doc """
Returns a mapping of all known types to their extensions,
including custom types compiled into the MIME module.
## Examples
known_types()
#=> %{"application/json" => ["json"], ...}
"""
@doc since: "2.1.0"
@spec known_types() :: %{String.t() => [String.t()]}
@spec known_types() :: %{required(String.t()) => [String.t()]}
def known_types do
unquote(Macro.escape(all_types))
end
Expand Down

0 comments on commit 8da6cb1

Please sign in to comment.