@envoy/envoy-integrations-sdk 2.0.0-beta.21 → 2.0.0-beta.22
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.
|
@@ -22,7 +22,7 @@ export default class EnvoyPluginStorage {
|
|
|
22
22
|
*
|
|
23
23
|
* Wrapper for single pipeline get.
|
|
24
24
|
*/
|
|
25
|
-
get<Value = unknown>(key: string): Promise<EnvoyStorageItem<Value
|
|
25
|
+
get<Value = unknown>(key: string): Promise<[] | EnvoyStorageItem<Value>>;
|
|
26
26
|
/**
|
|
27
27
|
* Sets a single {@link EnvoyStorageItem} from storage.
|
|
28
28
|
*
|
|
@@ -34,19 +34,19 @@ export default class EnvoyPluginStorage {
|
|
|
34
34
|
*
|
|
35
35
|
* Wrapper for single pipeline setUnique.
|
|
36
36
|
*/
|
|
37
|
-
setUnique(key: string, options?: EnvoyStorageSetUniqueOptions): Promise<EnvoyStorageItem<string
|
|
37
|
+
setUnique(key: string, options?: EnvoyStorageSetUniqueOptions): Promise<[] | EnvoyStorageItem<string>>;
|
|
38
38
|
/**
|
|
39
39
|
* Sets a single unique number {@link EnvoyStorageItem} from storage.
|
|
40
40
|
*
|
|
41
41
|
* Wrapper for single pipeline setUnique.
|
|
42
42
|
*/
|
|
43
|
-
setUniqueNum(key: string, options?: EnvoyStorageSetUniqueNumOptions): Promise<EnvoyStorageItem<number
|
|
43
|
+
setUniqueNum(key: string, options?: EnvoyStorageSetUniqueNumOptions): Promise<[] | EnvoyStorageItem<number>>;
|
|
44
44
|
/**
|
|
45
45
|
* Unsets an {@link EnvoyStorageItem} from storage. Returns null if the item did not previously exist.
|
|
46
46
|
*
|
|
47
47
|
* Wrapper for single pipeline unset.
|
|
48
48
|
*/
|
|
49
|
-
unset<Value = unknown>(key: string): Promise<EnvoyStorageItem<Value
|
|
49
|
+
unset<Value = unknown>(key: string): Promise<[] | EnvoyStorageItem<Value>>;
|
|
50
50
|
/**
|
|
51
51
|
* Returns an array of {@link EnvoyStorageItem} from storage.
|
|
52
52
|
*
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ export default class EnvoyPluginStorage {
|
|
|
33
33
|
* Wrapper for single pipeline get.
|
|
34
34
|
*/
|
|
35
35
|
get<Value = unknown>(key: string) {
|
|
36
|
-
return this.pipeline().get(key).executeSingle<EnvoyStorageItem<Value> |
|
|
36
|
+
return this.pipeline().get(key).executeSingle<EnvoyStorageItem<Value> | []>();
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -51,7 +51,7 @@ export default class EnvoyPluginStorage {
|
|
|
51
51
|
* Wrapper for single pipeline setUnique.
|
|
52
52
|
*/
|
|
53
53
|
setUnique(key: string, options: EnvoyStorageSetUniqueOptions = {}) {
|
|
54
|
-
return this.pipeline().setUnique(key, options).executeSingle<EnvoyStorageItem<string> |
|
|
54
|
+
return this.pipeline().setUnique(key, options).executeSingle<EnvoyStorageItem<string> | []>();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -60,7 +60,7 @@ export default class EnvoyPluginStorage {
|
|
|
60
60
|
* Wrapper for single pipeline setUnique.
|
|
61
61
|
*/
|
|
62
62
|
setUniqueNum(key: string, options: EnvoyStorageSetUniqueNumOptions = {}) {
|
|
63
|
-
return this.pipeline().setUniqueNum(key, options).executeSingle<EnvoyStorageItem<number> |
|
|
63
|
+
return this.pipeline().setUniqueNum(key, options).executeSingle<EnvoyStorageItem<number> | []>();
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -69,7 +69,7 @@ export default class EnvoyPluginStorage {
|
|
|
69
69
|
* Wrapper for single pipeline unset.
|
|
70
70
|
*/
|
|
71
71
|
unset<Value = unknown>(key: string) {
|
|
72
|
-
return this.pipeline().unset(key).executeSingle<EnvoyStorageItem<Value> |
|
|
72
|
+
return this.pipeline().unset(key).executeSingle<EnvoyStorageItem<Value> | []>();
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|