@mikuroxina/mini-fn
    Preparing search index...

    Function wrapThrowable

    • Wraps the return value of body into a Result.

      Type Parameters

      • E

      Parameters

      • catcher: (err: unknown) => E

        The function to cast an error from body.

      Returns <A extends unknown[], R>(
          body: (...args: A) => R,
      ) => (...args: A) => Result.Result<E, R>

      The wrapped function.