Peek (peek v0.2.4) 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, type: :my_type
# Filter out the `:__struct__` key for cleaner output
Peek.peek MyApp.Module, filter_structs: trueOptions
type: The type to get info for. Defaults to:t.filter_structs: Whether or not to filter out the:__struct__key. Defaults tofalse.all_types: Whether or not to return a map of all types. Defaults tofalse.json: Whether or not to return a JSON-safe value. Defaults tofalse.