@hazae41/stdbob 0.1.1 → 0.1.3
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.
- package/package.json +1 -1
- package/src/mods/storage/mod.ts +3 -3
package/package.json
CHANGED
package/src/mods/storage/mod.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { packref
|
|
1
|
+
import { packref } from "../mod";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Persistent public key-value storage
|
|
@@ -11,7 +11,7 @@ export namespace storage {
|
|
|
11
11
|
*/
|
|
12
12
|
// @ts-ignore: decorator
|
|
13
13
|
@external("storage", "get")
|
|
14
|
-
export declare function get(key:
|
|
14
|
+
export declare function get<K>(key: K): packref
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Set the value associated with the given key
|
|
@@ -20,6 +20,6 @@ export namespace storage {
|
|
|
20
20
|
*/
|
|
21
21
|
// @ts-ignore: decorator
|
|
22
22
|
@external("storage", "set")
|
|
23
|
-
export declare function set<
|
|
23
|
+
export declare function set<K, V>(key: K, value: V): void
|
|
24
24
|
|
|
25
25
|
}
|