πŸ“¦
unwrapit
CtrlK
  • πŸ‘‹Welcome to unwrapit
  • Intro
    • πŸ’‘Why use it?
    • ✨Getting Started
  • APIs
    • πŸ”¨wrap
    • πŸ”¨unwrap
    • πŸ”¨unwrapOr
    • πŸ”¨unwrapOrElse
    • πŸ”¨expect
    • πŸ”¨mapErr
    • πŸ”¨defineWrapConfig
    • πŸ”¨ok
    • πŸ”¨err
  • Type
    • πŸ”§Result
    • πŸ”§WrapConfig
    • πŸ”§WrapOption
    • πŸ”§Panic
  • Recipe
    • 🎨Export Wrapped Functions
    • 🎨Return Result Without `wrap` it
Powered by GitBook
On this page
  1. Type

πŸ”§Panic

type Panic = (
  message: any,
  opt?: {cause?: any; shouldExit?: boolean}
) => never

Panic is the type of the panic function which will be called when error occurs.

PreviousWrapOptionNextExport Wrapped Functions

Last updated 1 year ago