toilscript 0.1.8 → 0.1.10
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/dist/cli.js +1 -1
- package/dist/cli.js.map +2 -2
- package/dist/importmap.json +2 -2
- package/dist/toilscript.js +3 -3
- package/dist/toilscript.js.map +2 -2
- package/dist/web.js +3 -3
- package/package.json +1 -1
- package/std/assembly/toilscript.d.ts +23 -0
package/dist/web.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var ASSEMBLYSCRIPT_VERSION = "0.1.
|
|
1
|
+
var ASSEMBLYSCRIPT_VERSION = "0.1.10";
|
|
2
2
|
var ASSEMBLYSCRIPT_IMPORTMAP = {
|
|
3
3
|
"imports": {
|
|
4
|
-
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
5
|
-
"toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
4
|
+
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/toilscript.js",
|
|
5
|
+
"toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/cli.js",
|
|
6
6
|
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
|
|
7
7
|
"long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -15,6 +15,29 @@
|
|
|
15
15
|
*/
|
|
16
16
|
declare function main(): void;
|
|
17
17
|
|
|
18
|
+
// Typed as their decorator targets (class decorators take the constructor; the method
|
|
19
|
+
// decorator takes target/key/descriptor) so editors accept the bare forms. The compiler
|
|
20
|
+
// handles them natively and ignores these declarations.
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Marks a class as a serializable data type: the compiler generates a compact,
|
|
24
|
+
* self-identifying binary codec (`encode`/`decode`) plus a `toJSON`/`fromJSON`
|
|
25
|
+
* view, and (with `--rpcModule`) a matching typed client class.
|
|
26
|
+
*/
|
|
27
|
+
declare function data(target: Function): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Marks a function (free, or a method of an `@service` class) as a client-callable
|
|
31
|
+
* RPC endpoint. The server build emits it onto the typed client `Server` surface.
|
|
32
|
+
*/
|
|
33
|
+
declare function remote<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): void;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Marks a class as an RPC service: its `@remote` methods are namespaced under the
|
|
37
|
+
* client `Server` (e.g. `Server.<service>.<method>()`).
|
|
38
|
+
*/
|
|
39
|
+
declare function service(target: Function): void;
|
|
40
|
+
|
|
18
41
|
// Big integers, native globals implemented in std/assembly/bignum. The
|
|
19
42
|
// arithmetic/bitwise/comparison operators
|
|
20
43
|
// (+ - * / % & | ^ << >> == != < > <= >=) are operator overloads resolved by
|