Widen Transform.new/1 spec to accept keyword list

This commit is contained in:
Claudio Ortolina
2026-04-21 12:47:00 +01:00
parent 29bfa20978
commit 40ac5bdc99
+1 -1
View File
@@ -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 """