@test-org122/utils
Version:
Utilities used by Hypernet Labs packages
9 lines • 776 B
TypeScript
import { ResultAsync, Result } from "neverthrow";
export declare class ResultUtils {
static combine<T, T2, T3, T4, E, E2, E3, E4>(asyncResultList: [ResultAsync<T, E>, ResultAsync<T2, E2>, ResultAsync<T3, E3>, ResultAsync<T4, E4>]): ResultAsync<[T, T2, T3, T4], E | E2 | E3 | E4>;
static combine<T, T2, T3, E, E2, E3>(asyncResultList: [ResultAsync<T, E>, ResultAsync<T2, E2>, ResultAsync<T3, E3>]): ResultAsync<[T, T2, T3], E | E2 | E3>;
static combine<T, T2, E, E2>(asyncResultList: [ResultAsync<T, E>, ResultAsync<T2, E2>]): ResultAsync<[T, T2], E | E2>;
static combine<T, E>(asyncResultList: ResultAsync<T, E>[]): ResultAsync<T[], E>;
static combineResultList<T, E>(resultList: Result<T, E>[]): Result<T[], E>;
}
//# sourceMappingURL=ResultUtils.d.ts.map