@hazae41/stdbob 0.0.18 → 0.0.21

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.18",
4
+ "version": "0.0.21",
5
5
  "description": "Standard libraries for Bobine WebAssembly VM",
6
6
  "repository": "github:hazae41/stdbob",
7
7
  "author": "hazae41",
@@ -10,4 +10,8 @@ export namespace env {
10
10
  @external("env", "uuid")
11
11
  export declare function uuid(): textref
12
12
 
13
+ // @ts-ignore: decorator
14
+ @external("env", "panic")
15
+ export declare function panic<T>(): T
16
+
13
17
  }
@@ -18,6 +18,6 @@ export namespace modules {
18
18
 
19
19
  // @ts-ignore: decorator
20
20
  @external("modules", "create")
21
- export declare function create(code: blobref, salt: blobref): textref
21
+ export declare function create<T>(code: blobref, salt: T): textref
22
22
 
23
23
  }
package/tsconfig.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "extends": "assemblyscript/std/assembly.json",
3
3
  "compilerOptions": {
4
4
  "module": "preserve",
5
- "moduleResolution": "bundler"
5
+ "moduleResolution": "bundler",
6
+ "strict": true
6
7
  },
7
8
  "include": [
8
9
  "./**/*.ts"