Widen Transform.new/1 spec to accept keyword list
This commit is contained in:
@@ -9,7 +9,7 @@ defmodule MusicLibrary.Assets.Transform do
|
|||||||
@type t :: %__MODULE__{}
|
@type t :: %__MODULE__{}
|
||||||
@type payload :: String.t()
|
@type payload :: String.t()
|
||||||
|
|
||||||
@spec new(map()) :: t()
|
@spec new(keyword() | map()) :: t()
|
||||||
def new(attrs \\ %{}), do: struct!(__MODULE__, attrs)
|
def new(attrs \\ %{}), do: struct!(__MODULE__, attrs)
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
|
|||||||
Reference in New Issue
Block a user