Files
music_library/lib/brave_search.ex
T
Claudio Ortolina 7cf9b4e7f8 First pass at uniformed types, specs and docs
- spec public functions (skipping controllers, views, live views and
components)
- use types instead of explanations in docs
- remove redundant docs
- fix typos
2026-03-06 08:33:11 +00:00

16 lines
449 B
Elixir

defmodule BraveSearch do
alias BraveSearch.API
@spec search_images(String.t(), keyword()) :: {:ok, [map()]} | {:error, term()}
def search_images(query, opts \\ []) do
API.search_images(query, opts, config())
end
@spec download_image(String.t()) :: {:ok, binary()} | {:error, :download_failed}
def download_image(url) do
API.download_image(url, config())
end
defp config, do: BraveSearch.Config.resolve(:music_library)
end