@skyfox2000/microbase 1.2.0 → 1.2.1
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/lib/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/utils/micro-app.ts +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ export declare interface MainOpenApis {
|
|
|
270
270
|
/**
|
|
271
271
|
* 获取当前应用AppInfo
|
|
272
272
|
*/
|
|
273
|
-
getAppInfo
|
|
273
|
+
getAppInfo?: () => AppInfo;
|
|
274
274
|
/**
|
|
275
275
|
* 用户注册接口
|
|
276
276
|
*/
|
|
@@ -287,11 +287,11 @@ export declare interface MainOpenApis {
|
|
|
287
287
|
* 获取授权码
|
|
288
288
|
* @returns 授权码
|
|
289
289
|
*/
|
|
290
|
-
getToken
|
|
290
|
+
getToken?: () => string;
|
|
291
291
|
/**
|
|
292
292
|
* 获取当前用户信息
|
|
293
293
|
*/
|
|
294
|
-
getUserInfo
|
|
294
|
+
getUserInfo?: () => UserInfo;
|
|
295
295
|
/**
|
|
296
296
|
* 获取前端设置信息
|
|
297
297
|
*/
|
package/package.json
CHANGED
package/src/utils/micro-app.ts
CHANGED
|
@@ -57,7 +57,7 @@ export interface MainOpenApis {
|
|
|
57
57
|
/**
|
|
58
58
|
* 获取当前应用AppInfo
|
|
59
59
|
*/
|
|
60
|
-
getAppInfo
|
|
60
|
+
getAppInfo?: () => AppInfo;
|
|
61
61
|
/**
|
|
62
62
|
* 用户注册接口
|
|
63
63
|
*/
|
|
@@ -74,11 +74,11 @@ export interface MainOpenApis {
|
|
|
74
74
|
* 获取授权码
|
|
75
75
|
* @returns 授权码
|
|
76
76
|
*/
|
|
77
|
-
getToken
|
|
77
|
+
getToken?: () => string;
|
|
78
78
|
/**
|
|
79
79
|
* 获取当前用户信息
|
|
80
80
|
*/
|
|
81
|
-
getUserInfo
|
|
81
|
+
getUserInfo?: () => UserInfo;
|
|
82
82
|
/**
|
|
83
83
|
* 获取前端设置信息
|
|
84
84
|
*/
|