@clipboard-health/util-ts 5.17.8 → 5.17.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/util-ts",
|
|
3
|
-
"version": "5.17.
|
|
3
|
+
"version": "5.17.10",
|
|
4
4
|
"description": "TypeScript utilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"tslib": "2.8.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"type-fest": "5.
|
|
26
|
+
"type-fest": "5.10.0",
|
|
27
27
|
"zod": "3.25.76"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -23,9 +23,9 @@ export type ServiceResult<A, E extends ServiceError = ServiceError> = SuccessRes
|
|
|
23
23
|
/**
|
|
24
24
|
* Creates a successful ServiceResult.
|
|
25
25
|
*
|
|
26
|
-
* Call with no argument for a `ServiceResult<
|
|
26
|
+
* Call with no argument for a `ServiceResult<undefined>`.
|
|
27
27
|
*/
|
|
28
|
-
export declare function success<E extends ServiceError = ServiceError>(): ServiceResult<
|
|
28
|
+
export declare function success<E extends ServiceError = ServiceError>(): ServiceResult<undefined, E>;
|
|
29
29
|
export declare function success<A, E extends ServiceError = ServiceError>(value: A): ServiceResult<A, E>;
|
|
30
30
|
/**
|
|
31
31
|
* Creates a failed ServiceResult.
|