Svelixir.Config.Assets (svelixir v0.1.0)

Copy Markdown

Frontend and API asset configuration.

Summary

Functions

Builds and validates an Assets struct from a raw string-keyed map.

Types

asset_type()

@type asset_type() :: :none | :api | :ui | :both

t()

@type t() :: %Svelixir.Config.Assets{api: Svelixir.Config.Api.t(), type: asset_type()}

Functions

from_map(data)

@spec from_map(map()) :: {:ok, t()} | {:error, String.t()}

Builds and validates an Assets struct from a raw string-keyed map.