@etsoo/shared 1.1.59 → 1.1.60
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 +1 -0
- package/lib/cjs/DataTypes.d.ts +4 -0
- package/lib/mjs/DataTypes.d.ts +4 -0
- package/package.json +5 -5
- package/src/DataTypes.ts +5 -0
package/README.md
CHANGED
|
@@ -103,6 +103,7 @@ Data type definitions and type safe functions. ListItemType and ListItemType1 ar
|
|
|
103
103
|
|IdNameItem|Item with id and name|
|
|
104
104
|
|KeyCollection|Key collection, like { key1: {}, key2: {} }|
|
|
105
105
|
|Keys|Get specific type keys|
|
|
106
|
+
|MConstructor|Mixins constructor|
|
|
106
107
|
|ObjType|Generic object type|
|
|
107
108
|
|RequireAtLeastOne|Require at least one property of the keys|
|
|
108
109
|
|Simple|Basic or basic array type|
|
package/lib/cjs/DataTypes.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ export declare namespace DataTypes {
|
|
|
143
143
|
* Function type
|
|
144
144
|
*/
|
|
145
145
|
type Func<R> = (...args: any[]) => R;
|
|
146
|
+
/**
|
|
147
|
+
* Mixins constructor
|
|
148
|
+
*/
|
|
149
|
+
type MConstructor<T = {}> = new (...args: any[]) => T;
|
|
146
150
|
/**
|
|
147
151
|
* String key, unknown value Record
|
|
148
152
|
*/
|
package/lib/mjs/DataTypes.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ export declare namespace DataTypes {
|
|
|
143
143
|
* Function type
|
|
144
144
|
*/
|
|
145
145
|
type Func<R> = (...args: any[]) => R;
|
|
146
|
+
/**
|
|
147
|
+
* Mixins constructor
|
|
148
|
+
*/
|
|
149
|
+
type MConstructor<T = {}> = new (...args: any[]) => T;
|
|
146
150
|
/**
|
|
147
151
|
* String key, unknown value Record
|
|
148
152
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.60",
|
|
4
4
|
"description": "TypeScript shared utilities and functions",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/ETSOO/Shared#readme",
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@types/jest": "^29.1.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
59
|
-
"@typescript-eslint/parser": "^5.
|
|
60
|
-
"eslint": "^8.
|
|
57
|
+
"@types/jest": "^29.1.2",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
59
|
+
"@typescript-eslint/parser": "^5.40.0",
|
|
60
|
+
"eslint": "^8.25.0",
|
|
61
61
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
62
62
|
"eslint-plugin-import": "^2.26.0",
|
|
63
63
|
"jest": "^29.1.2",
|
package/src/DataTypes.ts
CHANGED
|
@@ -184,6 +184,11 @@ export namespace DataTypes {
|
|
|
184
184
|
*/
|
|
185
185
|
export type Func<R> = (...args: any[]) => R;
|
|
186
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Mixins constructor
|
|
189
|
+
*/
|
|
190
|
+
export type MConstructor<T = {}> = new (...args: any[]) => T;
|
|
191
|
+
|
|
187
192
|
/**
|
|
188
193
|
* String key, unknown value Record
|
|
189
194
|
*/
|