Packages

Generate type-safe Gleam clients directly from your Ash resources and actions, ensuring end-to-end type safety between Gleam and Elixir.

Current section

Files

Jump to
ash_gleam lib ash_gleam context.ex
Raw

lib/ash_gleam/context.ex

# SPDX-FileCopyrightText: 2026 Nduati Kuria
#
# SPDX-License-Identifier: MIT
defmodule AshGleam.Context do
@spec new(Keyword.t()) :: {:context, Keyword.t()}
def new(opts), do: {:context, opts}
@spec to_opts({:context, Keyword.t()}) :: Keyword.t()
def to_opts({:context, opts}), do: opts
end