@weser/actions 0.0.7 → 0.0.8
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/dist/types.d.ts +3 -1
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
2
|
+
export type T_ActionResponse<T = unknown> = IsAny<T> extends true ? [string] | [null, T?] : [string] | [null, T];
|
|
3
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weser/actions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "React helpers for working with server actions",
|
|
5
5
|
"author": "Robin Weser <robin@weser.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"rimraf": "^3.0.2",
|
|
53
53
|
"typescript": "^5.4.5"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "9dce5f658f08431e80506b022369229dfeff7dd7"
|
|
56
56
|
}
|