📦
unwrapit
  • 👋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

WrapOption

export type WrapOption = {
  /**
   * If `true`, the program will exit when panic. By default is `false`.
   */
  panic?: boolean
  /**
   * Exit code when panic. By default is `1`.
   */
  exitCode?: number
}
PreviousWrapConfigNextPanic

Last updated 1 year ago

🔧