Domo.InteractiveTypesRegistration (Domo v1.5.14) View Source

This module registers types of the module that can be referenced from struct type specs.

Should be used in interactive shell only. When Domo is launched with mix compile command, it reads module types from Beam files directly.

Example:

iex(1)> defmodule SharedTypes do
   ...>   use Domo.InteractiveTypesRegistration
   ...>
   ...>   @type id :: String.t() | nil
   ...> end

Now the SharedTypes.id can be referenced from a struct interactively:

iex(2)> defmodule MyStruct do
   ...>   use Domo
   ...>   defstruct [:id]
   ...>   @type t :: %__MODULE__{id: SharedTypes.id()}
   ...> end

Link to this section Summary

Link to this section Functions

Link to this function

register_in_memory_types(env, bytecode)

View Source