@unthrown/neverthrow 0.1.0 → 0.2.0
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.
- package/docs/index.md +4 -4
- package/package.json +4 -4
package/docs/index.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
function fromNeverthrow<T, E>(result): Result<T, E>;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Defined in: index.ts:60
|
|
15
|
+
Defined in: [index.ts:60](https://github.com/btravstack/unthrown/blob/400cfa972078ebe2522248d056e2f198b8101e81/packages/neverthrow/src/index.ts#L60)
|
|
16
16
|
|
|
17
17
|
Convert a neverthrow `Result` into a `Result`.
|
|
18
18
|
|
|
@@ -46,7 +46,7 @@ Convert a neverthrow `Result` into a `Result`.
|
|
|
46
46
|
function fromNeverthrowAsync<T, E>(resultAsync): AsyncResult<T, E>;
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Defined in: index.ts:99
|
|
49
|
+
Defined in: [index.ts:99](https://github.com/btravstack/unthrown/blob/400cfa972078ebe2522248d056e2f198b8101e81/packages/neverthrow/src/index.ts#L99)
|
|
50
50
|
|
|
51
51
|
Convert a neverthrow `ResultAsync` into an `AsyncResult`.
|
|
52
52
|
|
|
@@ -81,7 +81,7 @@ The async counterpart of [fromNeverthrow](#fromneverthrow). A modeled `Err` stay
|
|
|
81
81
|
function toNeverthrow<T, E>(result, onDefect): Result<T, E>;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
Defined in: index.ts:38
|
|
84
|
+
Defined in: [index.ts:38](https://github.com/btravstack/unthrown/blob/400cfa972078ebe2522248d056e2f198b8101e81/packages/neverthrow/src/index.ts#L38)
|
|
85
85
|
|
|
86
86
|
Convert a `Result` into a neverthrow `Result`, triaging any defect.
|
|
87
87
|
|
|
@@ -117,7 +117,7 @@ cause into a modeled error `E` (an `Err`). `Ok → ok`, `Err → err`,
|
|
|
117
117
|
function toNeverthrowAsync<T, E>(asyncResult, onDefect): ResultAsync<T, E>;
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
Defined in: index.ts:78
|
|
120
|
+
Defined in: [index.ts:78](https://github.com/btravstack/unthrown/blob/400cfa972078ebe2522248d056e2f198b8101e81/packages/neverthrow/src/index.ts#L78)
|
|
121
121
|
|
|
122
122
|
Convert an `AsyncResult` into a neverthrow `ResultAsync`, triaging any
|
|
123
123
|
defect.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unthrown/neverthrow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "neverthrow interop for unthrown",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"errors-as-values",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"./package.json": "./package.json"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"unthrown": "0.
|
|
46
|
+
"unthrown": "0.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "24.13.2",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"typedoc-plugin-markdown": "4.12.0",
|
|
55
55
|
"typescript": "6.0.3",
|
|
56
56
|
"vitest": "4.1.8",
|
|
57
|
-
"@unthrown/
|
|
58
|
-
"@unthrown/
|
|
57
|
+
"@unthrown/tsconfig": "0.1.0",
|
|
58
|
+
"@unthrown/typedoc": "0.1.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"neverthrow": "^8"
|