@zokugun/xtry 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.toStringFailure = toStringFailure;
|
|
4
4
|
const result_js_1 = require("./result.cjs");
|
|
5
5
|
const stringify_error_js_1 = require("./stringify-error.cjs");
|
|
6
|
-
function toStringFailure(
|
|
7
|
-
return (0, result_js_1.err)((0, stringify_error_js_1.stringifyError)(error));
|
|
6
|
+
function toStringFailure(failure) {
|
|
7
|
+
return (0, result_js_1.err)((0, stringify_error_js_1.stringifyError)(failure.error));
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type Failure } from './result.cjs';
|
|
2
|
-
export declare function toStringFailure(
|
|
2
|
+
export declare function toStringFailure(failure: Failure<unknown>): Failure<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type Failure } from './result.mjs';
|
|
2
|
-
export declare function toStringFailure(
|
|
2
|
+
export declare function toStringFailure(failure: Failure<unknown>): Failure<string>;
|