@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/stdbob",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "description": "Standard libraries for Bobine WebAssembly VM",
6
6
  "repository": "github:hazae41/stdbob",
7
7
  "author": "hazae41",
@@ -1,4 +1,4 @@
1
- import { packref, textref } from "../mod";
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: textref): packref
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<T>(key: textref, value: T): void
23
+ export declare function set<K, V>(key: K, value: V): void
24
24
 
25
25
  }