@etsoo/react 1.5.82 → 1.5.83

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.
@@ -48,7 +48,7 @@ export declare class UserState<D extends IUser> {
48
48
  /**
49
49
  * Provider
50
50
  */
51
- readonly provider: import("react").FunctionComponent<import("react").PropsWithChildren<IProviderProps<UserAction<D>>>>;
51
+ readonly provider: import("react").FunctionComponent<import("react").PropsWithChildren<UserProviderProps<D>>>;
52
52
  /**
53
53
  * Constructor
54
54
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.5.82",
3
+ "version": "1.5.83",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "青岛亿速思维",
39
39
  "上海亿商"
40
40
  ],
41
- "author": "Etsoo",
41
+ "author": "ETSOO",
42
42
  "license": "MIT",
43
43
  "bugs": {
44
44
  "url": "https://github.com/ETSOO/AppReact/issues"
@@ -69,8 +69,13 @@ export class UserState<D extends IUser> {
69
69
  * Constructor
70
70
  */
71
71
  constructor() {
72
- const { context, provider } = State.create(
73
- (state: D, action: UserAction<D>) => {
72
+ const { context, provider } = State.create<
73
+ D,
74
+ UserAction<D>,
75
+ UserCalls<D>,
76
+ UserProviderProps<D>
77
+ >(
78
+ (state, action) => {
74
79
  // User reducer
75
80
  switch (action.type) {
76
81
  case UserActionType.Login: