@etsoo/appscript 1.1.79 → 1.1.80

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.
@@ -28,6 +28,10 @@ export interface IUserData {
28
28
  */
29
29
  readonly token: string;
30
30
  }
31
+ /**
32
+ * User data property keys
33
+ */
34
+ export declare type UserKey = keyof IUserData;
31
35
  /**
32
36
  * User interface
33
37
  */
@@ -39,5 +43,5 @@ export interface IUser extends IUserData, IState {
39
43
  /**
40
44
  * Last update changed fields
41
45
  */
42
- lastChangedFields?: string[];
46
+ lastChangedFields?: UserKey[];
43
47
  }
@@ -28,6 +28,10 @@ export interface IUserData {
28
28
  */
29
29
  readonly token: string;
30
30
  }
31
+ /**
32
+ * User data property keys
33
+ */
34
+ export declare type UserKey = keyof IUserData;
31
35
  /**
32
36
  * User interface
33
37
  */
@@ -39,5 +43,5 @@ export interface IUser extends IUserData, IState {
39
43
  /**
40
44
  * Last update changed fields
41
45
  */
42
- lastChangedFields?: string[];
46
+ lastChangedFields?: UserKey[];
43
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.0.94",
56
56
  "@etsoo/restclient": "^1.0.62",
57
- "@etsoo/shared": "^1.0.76",
57
+ "@etsoo/shared": "^1.0.78",
58
58
  "@types/crypto-js": "^4.0.2",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -67,7 +67,7 @@
67
67
  "@types/jest": "^27.0.3",
68
68
  "@typescript-eslint/eslint-plugin": "^5.7.0",
69
69
  "@typescript-eslint/parser": "^5.7.0",
70
- "eslint": "^8.4.1",
70
+ "eslint": "^8.5.0",
71
71
  "eslint-config-airbnb-base": "^15.0.0",
72
72
  "eslint-plugin-import": "^2.25.3",
73
73
  "jest": "^27.4.5",
package/src/state/User.ts CHANGED
@@ -35,6 +35,11 @@ export interface IUserData {
35
35
  readonly token: string;
36
36
  }
37
37
 
38
+ /**
39
+ * User data property keys
40
+ */
41
+ export type UserKey = keyof IUserData;
42
+
38
43
  /**
39
44
  * User interface
40
45
  */
@@ -47,5 +52,5 @@ export interface IUser extends IUserData, IState {
47
52
  /**
48
53
  * Last update changed fields
49
54
  */
50
- lastChangedFields?: string[];
55
+ lastChangedFields?: UserKey[];
51
56
  }