View Source Dreamy.Types (dreamy v0.1.1)

Useful Type definitions

Summary

Types

Type for documenting the value within an enumerable

Type union of t & nil

Wrapper for :ok, and :error tuple

Types

@type enumerable(_t) :: Enumerable.t()

Type for documenting the value within an enumerable

@type nullable(t) :: t | nil

Type union of t & nil

@type result(ok, error) :: {:ok, ok} | {:error, error}

Wrapper for :ok, and :error tuple