@tlua/tlua-linux-arm 0.0.33 → 0.0.35
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/lib/lib.luajit.d.tlua +4 -2
- package/lib/tlua +0 -0
- package/package.json +2 -2
package/lib/lib.luajit.d.tlua
CHANGED
|
@@ -132,7 +132,7 @@ type Uncapitalize<S extends string> = intrinsic;
|
|
|
132
132
|
interface LuaMetatable<T extends table> {
|
|
133
133
|
__index?: Table<any, any> | ((value: T, key: any) => any);
|
|
134
134
|
__newindex?: Table<any, any> | ((value: T, key: any, newValue: any) => void);
|
|
135
|
-
__call?: (value: T, ...: any) => (any?, ...any);
|
|
135
|
+
__call?: async (value: T, ...: any) => (any?, ...any);
|
|
136
136
|
__tostring?: (value: T) => string;
|
|
137
137
|
__len?: (value: T) => number;
|
|
138
138
|
__unm?: (value: T) => any;
|
|
@@ -228,7 +228,9 @@ declare function xpcall(fn: function, handler: (message: any) => any, ...: any):
|
|
|
228
228
|
* metamethods also dispatch ambiently: a declared type that states them as
|
|
229
229
|
* `__add`-style members (a userdata class like GMod's Vector) overloads the
|
|
230
230
|
* operators with no setmetatable in sight; __index, __newindex and __call stay
|
|
231
|
-
* pairing-only.
|
|
231
|
+
* pairing-only. The __call slot is async-typed so a handler may carry the
|
|
232
|
+
* coroutine contract -- a sync handler satisfies it too, and the pairing's call
|
|
233
|
+
* surface keeps whichever flavor the handler declares.
|
|
232
234
|
* debug.setmetatable and debug.getmetatable bypass __metatable protection. A
|
|
233
235
|
* shadowed local of either name keeps whatever it declares. Both signatures still
|
|
234
236
|
* carry the contract this file can express: the parameter type is what validates a
|
package/lib/tlua
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tlua/tlua-linux-arm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "tlua",
|
|
6
6
|
"homepage": "https://github.com/apyrr/tlua",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d619cc24c4a47d343f4ef9e5efe00af0fbbd1b47",
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|
|
38
38
|
"tag": "latest"
|