neverthrow
Advanced tools
Comparing version 5.0.0 to 5.0.1
declare class ResultAsync<T, E> implements PromiseLike<Result<T, E>> { | ||
private _promise; | ||
constructor(res: Promise<Result<T, E>>); | ||
static fromSafePromise<T, E>(promise: PromiseLike<T>): ResultAsync<T, E>; | ||
static fromSafePromise<T, E = never>(promise: PromiseLike<T>): ResultAsync<T, E>; | ||
static fromPromise<T, E>(promise: PromiseLike<T>, errorFn: (e: unknown) => E): ResultAsync<T, E>; | ||
@@ -6,0 +6,0 @@ static combine<T extends readonly ResultAsync<unknown, unknown>[]>(asyncResultList: T): ResultAsync<ExtractOkAsyncTypes<T>, ExtractErrAsyncTypes<T>[number]>; |
{ | ||
"name": "neverthrow", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Stop throwing errors, and instead return Results!", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -72,3 +72,3 @@ # NeverThrow 🙅 | ||
As part of `neverthrow`s [bounty program](https://github.com/supermacro/neverthrow/issues/314), user [mdbetancourt](https://github.com/mdbetancourt) created `eslint-plugin-neverthrow` to ensure that errors are not gone unhandled. | ||
As part of `neverthrow`s [bounty program](https://github.com/supermacro/neverthrow/issues/314), user [mdbetancourt](https://github.com/mdbetancourt) created [`eslint-plugin-neverthrow`](https://github.com/mdbetancourt/eslint-plugin-neverthrow) to ensure that errors are not gone unhandled. | ||
@@ -75,0 +75,0 @@ Install by running: |
80452