Prelude API
    Preparing search index...

    Function rescue

    • Rescues thunk throwing an error with provided fallback function.

      Type Parameters

      • T
      • U

      Parameters

      • thunk: () => T
      • fallback: (err: unknown) => U

      Returns T | U