okay-error
Advanced tools
+1
-3
@@ -49,5 +49,3 @@ export type Ok<ValueType> = { | ||
| */ | ||
| export declare function err<K extends string>(type: K): Err<{ | ||
| type: K; | ||
| }>; | ||
| export declare function err<K extends string>(type: K): Err<K>; | ||
| /** | ||
@@ -54,0 +52,0 @@ * Construct an error Result from an arbitrary error value (object, string, etc). |
+1
-1
| { | ||
| "name": "okay-error", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "author": "Henry Mao", | ||
@@ -5,0 +5,0 @@ "private": false, |
+1
-1
@@ -64,3 +64,3 @@ // ── Core Types ─────────────────────────────────────────── | ||
| */ | ||
| export function err<K extends string>(type: K): Err<{ type: K }> | ||
| export function err<K extends string>(type: K): Err<K> | ||
@@ -67,0 +67,0 @@ /** |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%22930
-0.11%292
-0.68%