@tlua/tlua-win32-x64 0.0.37 → 0.0.39
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 +3 -28
- package/lib/tlua.exe +0 -0
- package/package.json +2 -2
package/lib/lib.luajit.d.tlua
CHANGED
|
@@ -47,24 +47,6 @@ interface LuaPairsIterator<K, V> {
|
|
|
47
47
|
// user signatures, resolved specially by the checker.
|
|
48
48
|
type NoInfer<T> = intrinsic;
|
|
49
49
|
|
|
50
|
-
// Inert Promise surface. tlua has no await and no Promise semantics; these
|
|
51
|
-
// exist only so `import(...)` and the residual `async` modifier keep
|
|
52
|
-
// type-checking. Deliberately member-poor.
|
|
53
|
-
interface PromiseLike<T> {
|
|
54
|
-
then(onfulfilled?: (value: T) => any, onrejected?: (reason: any) => any): PromiseLike<T>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Promise<T> {
|
|
58
|
-
then(onfulfilled?: (value: T) => any, onrejected?: (reason: any) => any): Promise<T>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface PromiseConstructor {
|
|
62
|
-
readonly prototype: Promise<any>;
|
|
63
|
-
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
64
|
-
resolve(): Promise<void>;
|
|
65
|
-
}
|
|
66
|
-
declare Promise: PromiseConstructor;
|
|
67
|
-
|
|
68
50
|
// The erasable type-operator utilities inherited from TypeScript. These are
|
|
69
51
|
// pure type sugar over machinery the checker supports (mapped, conditional,
|
|
70
52
|
// and intrinsic string types); no runtime surface.
|
|
@@ -109,14 +91,6 @@ type NonNullable<T> = T & {};
|
|
|
109
91
|
/** Obtain the return type of a function type */
|
|
110
92
|
type ReturnType<T extends (...: any) => any> = T extends (...: any) => infer R ? R : any;
|
|
111
93
|
|
|
112
|
-
/** Recursively unwrap the value type of a thenable */
|
|
113
|
-
type Awaited<T> = T extends null | undefined ? T :
|
|
114
|
-
T extends table & { then(onfulfilled: infer F, ...: infer _): any; } ?
|
|
115
|
-
F extends ((value: infer V, ...: infer _) => any) ?
|
|
116
|
-
Awaited<V> :
|
|
117
|
-
never :
|
|
118
|
-
T;
|
|
119
|
-
|
|
120
94
|
/** Convert string literal type to uppercase */
|
|
121
95
|
type Uppercase<S extends string> = intrinsic;
|
|
122
96
|
|
|
@@ -132,7 +106,7 @@ type Uncapitalize<S extends string> = intrinsic;
|
|
|
132
106
|
interface LuaMetatable<T extends table> {
|
|
133
107
|
__index?: Table<any, any> | ((value: T, key: any) => any);
|
|
134
108
|
__newindex?: Table<any, any> | ((value: T, key: any, newValue: any) => void);
|
|
135
|
-
__call?:
|
|
109
|
+
__call?: suspend (value: T, ...: any) => (any?, ...any);
|
|
136
110
|
__tostring?: (value: T) => string;
|
|
137
111
|
__len?: (value: T) => number;
|
|
138
112
|
__unm?: (value: T) => any;
|
|
@@ -228,7 +202,7 @@ declare function xpcall(fn: function, handler: (message: any) => any, ...: any):
|
|
|
228
202
|
* metamethods also dispatch ambiently: a declared type that states them as
|
|
229
203
|
* `__add`-style members (a userdata class like GMod's Vector) overloads the
|
|
230
204
|
* operators with no setmetatable in sight; __index, __newindex and __call stay
|
|
231
|
-
* pairing-only. The __call slot is
|
|
205
|
+
* pairing-only. The __call slot is suspend-typed so a handler may carry the
|
|
232
206
|
* coroutine contract -- a sync handler satisfies it too, and the pairing's call
|
|
233
207
|
* surface keeps whichever flavor the handler declares.
|
|
234
208
|
* debug.setmetatable and debug.getmetatable bypass __metatable protection. A
|
|
@@ -466,6 +440,7 @@ interface DebugLib {
|
|
|
466
440
|
sethook(thread: thread, hook?: function, mask?: string, count?: number): void;
|
|
467
441
|
setlocal(level: number, localIndex: number, value: any): string | nil;
|
|
468
442
|
setlocal(thread: thread, level: number, localIndex: number, value: any): string | nil;
|
|
443
|
+
setmetatable<T extends table>(value: T, metatable: LuaMetatable<T> | nil): T;
|
|
469
444
|
setmetatable<T>(value: T, metatable: table | nil): T;
|
|
470
445
|
setupvalue(fn: function, index: number, value: any): string | nil;
|
|
471
446
|
traceback(message?: any, level?: number): string;
|
package/lib/tlua.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tlua/tlua-win32-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
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": "ceb3aad61277942534ec4f882575ed35b308ae34",
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|
|
38
38
|
"tag": "latest"
|