@etsoo/shared 1.2.68 → 1.2.69
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.
|
@@ -62,8 +62,8 @@ export type MsgActionResult = IActionResult<{
|
|
|
62
62
|
/**
|
|
63
63
|
* Action result with id, message data
|
|
64
64
|
*/
|
|
65
|
-
export type IdMsgActionResult = IActionResult<{
|
|
66
|
-
id:
|
|
65
|
+
export type IdMsgActionResult<T extends IdType = number> = IActionResult<{
|
|
66
|
+
id: T;
|
|
67
67
|
msg: string;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
@@ -62,8 +62,8 @@ export type MsgActionResult = IActionResult<{
|
|
|
62
62
|
/**
|
|
63
63
|
* Action result with id, message data
|
|
64
64
|
*/
|
|
65
|
-
export type IdMsgActionResult = IActionResult<{
|
|
66
|
-
id:
|
|
65
|
+
export type IdMsgActionResult<T extends IdType = number> = IActionResult<{
|
|
66
|
+
id: T;
|
|
67
67
|
msg: string;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.69",
|
|
4
4
|
"description": "TypeScript shared utilities and functions",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"homepage": "https://github.com/ETSOO/Shared#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/lodash.isequal": "^4.5.8",
|
|
40
|
-
"@vitejs/plugin-react": "^4.
|
|
41
|
-
"jsdom": "^26.
|
|
40
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
41
|
+
"jsdom": "^26.1.0",
|
|
42
42
|
"typescript": "^5.8.3",
|
|
43
43
|
"vitest": "^3.1.1"
|
|
44
44
|
},
|
package/src/IActionResult.ts
CHANGED
|
@@ -75,8 +75,8 @@ export type MsgActionResult = IActionResult<{
|
|
|
75
75
|
/**
|
|
76
76
|
* Action result with id, message data
|
|
77
77
|
*/
|
|
78
|
-
export type IdMsgActionResult = IActionResult<{
|
|
79
|
-
id:
|
|
78
|
+
export type IdMsgActionResult<T extends IdType = number> = IActionResult<{
|
|
79
|
+
id: T;
|
|
80
80
|
msg: string;
|
|
81
81
|
}>;
|
|
82
82
|
|