Peek (peek v0.1.0) View Source
Peek at typespecs in a module and get them in a more-usable format.
Link to this section Summary
Functions
Peek at a type in a module.
Link to this section Functions
Specs
Peek at a type in a module.
Usage
# Defaults to `:t`
Peek.peek MyApp.Module
# Check a specific type
Peek.peek MyApp.Module, :my_type
# Filter out the `:__struct__` key for cleaner output
Peek.peek MyApp.Module, :t, filter_structs: true
Options
filter_structs
: Whether or not to filter out the:__struct__
key. Defaults tofalse
.