gis-common 4.2.6 → 4.2.8

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.
@@ -17,6 +17,7 @@ declare enum ErrorType {
17
17
  PARAMETER_ERROR_STRING = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u662F\u5B57\u7B26",
18
18
  PARAMETER_ERROR_FUNCTION = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u662F\u51FD\u6570",
19
19
  PARAMETER_ERROR_OBJECT = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u662F\u5BF9\u8C61",
20
+ PARAMETER_ERROR_INTEGER = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u662F\u6574\u578B",
20
21
  PARAMETER_ERROR_NUMBER = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u662F\u6570\u503C",
21
22
  PARAMETER_ERROR_LACK = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25\uFF0C\u5FC5\u987B\u975E\u7A7A",
22
23
  DATA_ERROR = "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25",
@@ -1,5 +1,8 @@
1
1
  export default class Storage {
2
+ static store: Storage;
2
3
  static prefix: string;
4
+ static useLocal(): void;
5
+ static useSession(): void;
3
6
  private static _getPrefixedKey;
4
7
  /**
5
8
  * 将键值对存储到localStorage中
@@ -13,7 +16,7 @@ export default class Storage {
13
16
  expires?: number;
14
17
  }): void;
15
18
  /**
16
- * 从localStorage中获取指定key的存储值
19
+ * 从Storage中获取指定key的存储值
17
20
  *
18
21
  * @param key 存储键名
19
22
  * @param missing 当获取不到指定key的存储值时返回的默认值