@hazae41/stdbob 0.0.13 → 0.0.14

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.0.13",
4
+ "version": "0.0.14",
5
5
  "description": "Standard libraries for Bobine WebAssembly VM",
6
6
  "repository": "github:hazae41/stdbob",
7
7
  "author": "hazae41",
@@ -9,7 +9,7 @@ export namespace modules {
9
9
 
10
10
  // @ts-ignore: decorator
11
11
  @external("modules", "call")
12
- export declare function call(module: blobref, method: blobref, params: packref): packref
12
+ export declare function call<T>(module: blobref, method: blobref, params: packref): T
13
13
 
14
14
  // @ts-ignore: decorator
15
15
  @external("modules", "create")
@@ -1,17 +1,8 @@
1
- import { blobref } from "../blobs/mod";
2
1
 
3
2
  export type packref = externref
4
3
 
5
4
  export namespace packs {
6
5
 
7
- // @ts-ignore: decorator
8
- @external("packs", "decode")
9
- export declare function decode(blob: blobref): packref
10
-
11
- // @ts-ignore: decorator
12
- @external("packs", "encode")
13
- export declare function encode(pack: packref): blobref
14
-
15
6
  // @ts-ignore: decorator
16
7
  @external("packs", "concat")
17
8
  export declare function concat(left: packref, right: packref): packref
@@ -1,13 +1,13 @@
1
- import { packref, textref } from "../mod";
1
+ import { textref } from "../mod";
2
2
 
3
3
  export namespace storage {
4
4
 
5
5
  // @ts-ignore: decorator
6
6
  @external("storage", "get")
7
- export declare function get(key: textref): packref;
7
+ export declare function get<T>(key: textref): T;
8
8
 
9
9
  // @ts-ignore: decorator
10
10
  @external("storage", "set")
11
- export declare function set(key: textref, value: packref): void;
11
+ export declare function set<T>(key: textref, value: T): void;
12
12
 
13
13
  }