@momo-cloud/gami-sdk 0.0.44 → 0.0.45

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.
@@ -202,9 +202,9 @@ export { Storage_2 as Storage }
202
202
 
203
203
  declare interface StorageAPI {
204
204
  cacheJson(key: string, obj: any): void;
205
- cacheString(key: string, obj: string): void;
206
- getJson(key: string): Promise<any>;
207
- getString(key: string): Promise<string | null>;
205
+ cacheValue(key: string, val: any): void;
206
+ getJson(key: string, defaultValue?: any): Promise<any>;
207
+ getValue(key: string, defaultValue?: any): Promise<any>;
208
208
  getInCache(url: string): string | undefined;
209
209
  cacheFile(url: string): Promise<string>;
210
210
  }