SystemOneClient.Answer (SystemOneClient v0.1.0)

Copy Markdown View Source

Typed answers returned by TypeSafe System One questions.

Summary

Types

Functions

parse(a)

@spec parse(map()) :: {:ok, t()} | {:error, term()}

parse_all(answers)

@spec parse_all(%{required(String.t()) => map()}) ::
  {:ok, %{required(String.t()) => t()}}
  | {:error, {String.t(), term()} | :answers_not_a_map}