View Source TypeResolver.TypeExporter (TypeResolver v0.1.2)
A module to export types to a submodule called MODULE.ExportedTypes.
The generated module contains a functions types
that returns all
types of MODULE as returned by Code.Typespec.fetch_types/1
.
Use this module to expose types of your module to be used with this library.
Directly calling Code.Typespec.fetch_types/1
onto the modules often
returns errors, since it may have no beam file at the time.
To use this module, call the use-Macro:
defmodule MyModule do
use TypeResolver.TypeExporter
# module code ...
end