@hazae41/stdbob 0.0.15 → 0.0.16
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/env/mod.ts +2 -6
- package/src/mods/modules/mod.ts +8 -7
package/package.json
CHANGED
package/src/mods/env/mod.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { textref } from "../mod";
|
|
2
2
|
|
|
3
3
|
export namespace env {
|
|
4
4
|
|
|
@@ -8,10 +8,6 @@ export namespace env {
|
|
|
8
8
|
|
|
9
9
|
// @ts-ignore: decorator
|
|
10
10
|
@external("env", "uuid")
|
|
11
|
-
export declare function uuid():
|
|
12
|
-
|
|
13
|
-
// @ts-ignore: decorator
|
|
14
|
-
@external("env", "test")
|
|
15
|
-
export declare function test(x: blobref): void
|
|
11
|
+
export declare function uuid(): textref
|
|
16
12
|
|
|
17
13
|
}
|
package/src/mods/modules/mod.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { blobref } from "../blobs/mod";
|
|
2
2
|
import { packref } from "../packs/mod";
|
|
3
|
+
import { textref } from "../texts/mod";
|
|
3
4
|
|
|
4
5
|
export namespace modules {
|
|
5
6
|
|
|
7
|
+
// @ts-ignore: decorator
|
|
8
|
+
@external("modules", "self")
|
|
9
|
+
export declare function self(): textref
|
|
10
|
+
|
|
6
11
|
// @ts-ignore: decorator
|
|
7
12
|
@external("modules", "load")
|
|
8
|
-
export declare function load(module:
|
|
13
|
+
export declare function load(module: textref): blobref
|
|
9
14
|
|
|
10
15
|
// @ts-ignore: decorator
|
|
11
16
|
@external("modules", "call")
|
|
12
|
-
export declare function call<T>(module:
|
|
17
|
+
export declare function call<T>(module: textref, method: textref, params: packref): T
|
|
13
18
|
|
|
14
19
|
// @ts-ignore: decorator
|
|
15
20
|
@external("modules", "create")
|
|
16
|
-
export declare function create(code: blobref, salt: blobref):
|
|
17
|
-
|
|
18
|
-
// @ts-ignore: decorator
|
|
19
|
-
@external("modules", "self")
|
|
20
|
-
export declare function self(): blobref
|
|
21
|
+
export declare function create(code: blobref, salt: blobref): textref
|
|
21
22
|
|
|
22
23
|
}
|