-module(deriv@types). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export_type([module_reader_err/0, file/0, output/0, write/0, function_/0, gen/0, derivation/0, deriv_field/0, deriv_field_opt/0]). -type module_reader_err() :: {file_err, simplifile:file_error()} | {glance_err, glance:error()} | {bad_ident, binary()} | {custom_type_missing_err, binary()}. -type file() :: {file, binary(), binary(), gleam@option:option(integer())}. -type output() :: {output, binary(), binary()} | {output_inline, binary(), binary()}. -type write() :: {write, binary(), binary(), output()}. -type function_() :: {function, binary(), binary(), glance:definition(glance:function_())}. -type gen() :: {gen, file(), derivation(), list(glance:import()), list(glance:definition(glance:function_())), binary(), gleam@dict:dict(binary(), binary())}. -type derivation() :: {derivation, binary(), list(binary())}. -type deriv_field() :: {deriv_field, binary(), binary(), binary()}. -type deriv_field_opt() :: {deriv_field_opt, list(binary())}.