lack 1.3.11 → 1.3.12
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.
|
@@ -129,6 +129,13 @@ declare namespace Whistle {
|
|
|
129
129
|
removeProperty(name: string): void;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
interface SharedStorage {
|
|
133
|
+
getAll: () => Promise<any>;
|
|
134
|
+
setItem: (key: any, value?: any) => Promise<any>;
|
|
135
|
+
getItem: (key: string) => any;
|
|
136
|
+
removeItem: (key: string) => any;
|
|
137
|
+
}
|
|
138
|
+
|
|
132
139
|
interface PluginOptions {
|
|
133
140
|
name: string;
|
|
134
141
|
version: string;
|
|
@@ -190,6 +197,7 @@ declare namespace Whistle {
|
|
|
190
197
|
Storage: Storage;
|
|
191
198
|
localStorage: Storage;
|
|
192
199
|
storage: Storage;
|
|
200
|
+
sharedStorage: SharedStorage;
|
|
193
201
|
baseUrl: string;
|
|
194
202
|
LRU: LRUCache;
|
|
195
203
|
getValue(key: string, cb: (value: string) => void): void;
|
|
@@ -255,6 +263,7 @@ declare namespace Whistle {
|
|
|
255
263
|
getFrames: GetFrame;
|
|
256
264
|
Storage: Storage;
|
|
257
265
|
localStorage: Storage;
|
|
266
|
+
sharedStorage: SharedStorage;
|
|
258
267
|
sessionStorage: {
|
|
259
268
|
set(key: string, value: any): any;
|
|
260
269
|
get(key: string): any;
|
|
@@ -333,6 +342,7 @@ declare namespace Whistle {
|
|
|
333
342
|
clientIp: string;
|
|
334
343
|
Storage: Storage;
|
|
335
344
|
localStorage: Storage;
|
|
345
|
+
sharedStorage: SharedStorage;
|
|
336
346
|
}
|
|
337
347
|
|
|
338
348
|
type PluginUIResponse = WhistleBase.Response;
|