ExGram.Macros.Checker (ex_gram v0.40.0) View Source

Type checker for the method executer.

Link to this section Summary

Link to this section Types

Specs

error_type_element() :: {any(), [valid_type()]}

Specs

param_type() :: maybe_improper_list(any(), [valid_type()])

Specs

params_types() :: [param_type()]

Specs

valid_type() ::
  :integer
  | :string
  | :boolean
  | :float
  | :file
  | {:array, valid_type()}
  | atom()

Link to this section Functions

Specs

check_types(params_types()) ::
  :ok | {:error, [{error_type_element(), integer()}]}