You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"private": false,
3
3
"name": "typescript-result",
4
-
"version": "3.2.0-beta.5",
4
+
"version": "3.2.0-beta.6",
5
5
"description": "A Result type inspired by Rust and Kotlin that leverages TypeScript's powerful type system to simplify error handling and make your code more readable and maintainable.",
Like [`Result.recover`](#recoveronfailure) it transforms a failed result using the `onFailure` callback into a successful result.
1235
1235
In addition, it catches any exceptions that might be thrown inside the `onFailure` callback and encapsulates them
@@ -1238,6 +1238,7 @@ in a failed result.
1238
1238
#### Parameters
1239
1239
1240
1240
-`onFailure` callback function to transform the error of the result. The callback can be async as well.
1241
+
-`transformError` callback function to transform any potential caught error while recovering the result.`
1241
1242
1242
1243
**returns** a new successful [`Result`](#result) instance or a new successful [`AsyncResult`](#asyncresult) instance when the result represents a failure, or the original instance if it represents a success.
1243
1244
@@ -1775,7 +1776,7 @@ declare function persistLocally(item: Item): AsyncResult<Item, IOError>;
0 commit comments