@firtoz/maybe-error 1.6.0 → 1.6.2
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/README.md +4 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -242,6 +242,10 @@ async function fetchMultipleUsers(ids: string[]): Promise<MaybeError<User[]>> {
|
|
|
242
242
|
}
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
+
## Used with @firtoz/router-toolkit
|
|
246
|
+
|
|
247
|
+
`formAction` handlers and typed loaders/actions expect `MaybeError` results. Import **`success`**, **`fail`**, and related helpers from **`@firtoz/maybe-error`**; import **`formAction`**, **`useDynamicSubmitter`**, and route utilities from **`@firtoz/router-toolkit`**. See [router-toolkit README — Form Action Utilities & MaybeError Utility](../router-toolkit/README.md#form-action-utilities).
|
|
248
|
+
|
|
245
249
|
## Contributing
|
|
246
250
|
|
|
247
251
|
Contributions are welcome! This package is part of the [fullstack-toolkit monorepo](https://github.com/firtoz/fullstack-toolkit).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firtoz/maybe-error",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Type-safe result handling with MaybeError pattern",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
17
|
"files": [
|
|
@@ -55,6 +57,6 @@
|
|
|
55
57
|
"access": "public"
|
|
56
58
|
},
|
|
57
59
|
"devDependencies": {
|
|
58
|
-
"bun-types": "^1.3.
|
|
60
|
+
"bun-types": "^1.3.13"
|
|
59
61
|
}
|
|
60
62
|
}
|