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

    Function wrapAsyncThrowable

    • Wraps the return value of body into a Result over Promise.

      Type Parameters

      • E

      Parameters

      • catcher: (err: unknown) => E

        The function to cast an error from body.

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

      The wrapped function.