@momo-cloud/gami-sdk 0.0.48 → 0.0.49

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.
@@ -31,6 +31,7 @@ declare const GamiSDK: {
31
31
  isIos: boolean;
32
32
  isProd: boolean;
33
33
  isUat: boolean;
34
+ wait: () => Promise<unknown>;
34
35
  closeApp: () => void;
35
36
  goHome: () => void;
36
37
  init: ({ gameId, source, appjson, userId }: {
@@ -192,6 +193,15 @@ declare const GamiSDK: {
192
193
  export { GamiSDK }
193
194
  export default GamiSDK;
194
195
 
196
+ declare interface IStorageAPI {
197
+ cacheJson(key: string, obj: any): void;
198
+ cacheValue(key: string, val: any): void;
199
+ getJson(key: string, defaultValue?: any): Promise<any>;
200
+ getValue(key: string, defaultValue?: any): Promise<any>;
201
+ getInCache(url: string): string | undefined;
202
+ cacheFile(url: string): Promise<string>;
203
+ }
204
+
195
205
  export declare interface IUserInfo {
196
206
  id: string;
197
207
  name?: string;
@@ -199,18 +209,9 @@ export declare interface IUserInfo {
199
209
  avatar?: string;
200
210
  }
201
211
 
202
- declare const Storage_2: StorageAPI;
212
+ declare const Storage_2: IStorageAPI;
203
213
  export { Storage_2 as Storage }
204
214
 
205
- declare interface StorageAPI {
206
- cacheJson(key: string, obj: any): void;
207
- cacheValue(key: string, val: any): void;
208
- getJson(key: string, defaultValue?: any): Promise<any>;
209
- getValue(key: string, defaultValue?: any): Promise<any>;
210
- getInCache(url: string): string | undefined;
211
- cacheFile(url: string): Promise<string>;
212
- }
213
-
214
215
  export declare type TDeviceInfo = {
215
216
  appVersion: string;
216
217
  buildVersion: string;