Tyyppi.sigil_t
You're seeing just the macro
sigil_t
, go back to Tyyppi module for more information.
Sigil to simplify specification of Tyyppi.T.t(term())
type, it’s literally the wrapper for Tyyppi.parse/1
.
Examples
iex> import Tyyppi
iex> ~t[integer()]
%Tyyppi.T{
definition: {:type, 0, :integer, []},
module: nil,
name: nil,
params: [],
quoted: {:integer, [], []},
source: nil,
type: :built_in
}
...> ~t[atom]
%Tyyppi.T{
definition: {:type, 0, :atom, []},
module: nil,
name: nil,
params: [],
quoted: {:atom, [], []},
source: nil,
type: :built_in
}