Skip to content

Commit

Permalink
Remove opaque Corsica.sanitized_options/0 type
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Jul 25, 2023
1 parent 1857c34 commit 1560dcc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/corsica.ex
Original file line number Diff line number Diff line change
Expand Up @@ -294,17 +294,13 @@ defmodule Corsica do
@typedoc since: "2.0.0"
@type origin() :: String.t() | Regex.t() | {module(), function :: atom(), args :: [term()]}

@typedoc """
Sanitized options, internal to Corsica.
"""
@typedoc since: "2.1.0"
@opaque sanitized_options() :: %Options{}

@typedoc """
Options accepted by most functions as well as the `Corsica` plug.
The `%Options{}` struct is internal to Corsica and is used for performance.
"""
@typedoc since: "2.1.0"
@type options() :: keyword() | sanitized_options()
@type options() :: keyword() | %Options{}

@simple_methods ~w(GET HEAD POST)
@simple_headers ~w(accept accept-language content-language)
Expand Down

0 comments on commit 1560dcc

Please sign in to comment.