Zodish.Option (zodish v0.2.4)

View Source

Type options have their own set of options, such as a custom error message. This module defines how to type those and how to merge default options with user-defined options.

Summary

Functions

Merges two sets of options where b overrides a.

Types

t()

@type t() :: t(any())

t(inner_type)

@type t(inner_type) :: {inner_type, %{error: String.t()}}

Functions

merge_opts(a, b)

Merges two sets of options where b overrides a.