@tlua/tlua-win32-arm64 0.0.14 → 0.0.15
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 +23 -23
- package/lib/tlua.exe +0 -0
- package/package.json +2 -2
package/lib/lib.luajit.d.tlua
CHANGED
|
@@ -175,7 +175,7 @@ declare function load(reader: () => string | nil, chunkname?: string): (function
|
|
|
175
175
|
declare function loadfile(filename?: string): (function?, string?);
|
|
176
176
|
declare function loadstring(source: string, chunkname?: string): (function?, string?);
|
|
177
177
|
declare function module(name: string, ...: function): void;
|
|
178
|
-
declare function newproxy(prototype?: boolean |
|
|
178
|
+
declare function newproxy(prototype?: boolean | userdata): userdata;
|
|
179
179
|
// next is the pairs iteration protocol, so its value is non-optional for the same
|
|
180
180
|
// reason LuaPairsIterator's is: a key it yields always has one.
|
|
181
181
|
declare function next<K, V>(value: Table<K, V>, index?: K): (K?, V);
|
|
@@ -219,7 +219,7 @@ declare function xpcall(fn: function, handler: (message: any) => any, ...: any):
|
|
|
219
219
|
* value-dependent choice generics cannot spell, so the checker refines it (like
|
|
220
220
|
* `type`/`io.type` narrowing). `unpack` already correlates through the ordinary
|
|
221
221
|
* generic `T`. The whole coroutine module stays erased: resume/yield because a
|
|
222
|
-
* `
|
|
222
|
+
* `thread` is opaque and carries no packs (Luau makes the same call), and wrap
|
|
223
223
|
* because a wrapped call exchanges values with `yield`, not with fn's packs.
|
|
224
224
|
*
|
|
225
225
|
* The signatures of setmetatable and getmetatable stay deliberately plain: the
|
|
@@ -242,10 +242,10 @@ declare function xpcall(fn: function, handler: (message: any) => any, ...: any):
|
|
|
242
242
|
*/
|
|
243
243
|
|
|
244
244
|
interface CoroutineLib {
|
|
245
|
-
create(fn: function):
|
|
246
|
-
resume(thread:
|
|
247
|
-
running():
|
|
248
|
-
status(thread:
|
|
245
|
+
create(fn: function): thread;
|
|
246
|
+
resume(thread: thread, ...: any): (boolean, ...any);
|
|
247
|
+
running(): thread | nil;
|
|
248
|
+
status(thread: thread): "running" | "suspended" | "normal" | "dead";
|
|
249
249
|
// Deliberately erased, like resume/yield: a wrapped coroutine's calls exchange
|
|
250
250
|
// values with `yield` -- the first call's results are the first yield's
|
|
251
251
|
// arguments, later calls feed yield's results -- so correlating them with fn's
|
|
@@ -447,23 +447,23 @@ interface DebugLib {
|
|
|
447
447
|
debug(): void;
|
|
448
448
|
getfenv(value: any): table;
|
|
449
449
|
gethook(): (function?, string?, number?);
|
|
450
|
-
gethook(thread:
|
|
450
|
+
gethook(thread: thread): (function?, string?, number?);
|
|
451
451
|
getinfo(fn: number | function, what?: string): LuaDebugInfo | nil;
|
|
452
|
-
getinfo(thread:
|
|
452
|
+
getinfo(thread: thread, fn: number | function, what?: string): LuaDebugInfo | nil;
|
|
453
453
|
getlocal(level: number, localIndex: number): (string?, any);
|
|
454
|
-
getlocal(thread:
|
|
454
|
+
getlocal(thread: thread, level: number, localIndex: number): (string?, any);
|
|
455
455
|
getmetatable(value: any): table | nil;
|
|
456
456
|
getregistry(): table;
|
|
457
457
|
getupvalue(fn: function, index: number): (string?, any);
|
|
458
458
|
setfenv(value: any, environment: table): any;
|
|
459
459
|
sethook(hook?: function, mask?: string, count?: number): void;
|
|
460
|
-
sethook(thread:
|
|
460
|
+
sethook(thread: thread, hook?: function, mask?: string, count?: number): void;
|
|
461
461
|
setlocal(level: number, localIndex: number, value: any): string | nil;
|
|
462
|
-
setlocal(thread:
|
|
462
|
+
setlocal(thread: thread, level: number, localIndex: number, value: any): string | nil;
|
|
463
463
|
setmetatable<T>(value: T, metatable: table | nil): T;
|
|
464
464
|
setupvalue(fn: function, index: number, value: any): string | nil;
|
|
465
465
|
traceback(message?: any, level?: number): string;
|
|
466
|
-
traceback(thread:
|
|
466
|
+
traceback(thread: thread, message?: any, level?: number): string;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
declare debug: DebugLib;
|
|
@@ -512,7 +512,7 @@ interface LuaCData {
|
|
|
512
512
|
|
|
513
513
|
interface LuaCType {
|
|
514
514
|
readonly __ffiCTypeBrand: unique symbol;
|
|
515
|
-
(...: any):
|
|
515
|
+
(...: any): cdata;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
interface LuaCallback extends LuaCData {
|
|
@@ -525,7 +525,7 @@ interface LuaCNamespace {
|
|
|
525
525
|
[name: string]: any;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
type LuaCTypeSpec = LuaCType | string |
|
|
528
|
+
type LuaCTypeSpec = LuaCType | string | cdata;
|
|
529
529
|
|
|
530
530
|
interface FFILib {
|
|
531
531
|
readonly C: LuaCNamespace;
|
|
@@ -533,11 +533,11 @@ interface FFILib {
|
|
|
533
533
|
readonly arch: string;
|
|
534
534
|
cdef(definition: string): void;
|
|
535
535
|
load(name: string, global?: boolean): LuaCNamespace;
|
|
536
|
-
"new": (type: LuaCTypeSpec, ...: any) =>
|
|
536
|
+
"new": (type: LuaCTypeSpec, ...: any) => cdata;
|
|
537
537
|
"typeof": (type: LuaCTypeSpec, ...: any) => LuaCType;
|
|
538
|
-
cast(type: LuaCTypeSpec, initializer: any):
|
|
538
|
+
cast(type: LuaCTypeSpec, initializer: any): cdata;
|
|
539
539
|
metatype(type: LuaCTypeSpec, metatable: table): LuaCType;
|
|
540
|
-
gc(value:
|
|
540
|
+
gc(value: cdata, finalizer?: function): cdata;
|
|
541
541
|
sizeof(type: LuaCTypeSpec, count?: number): number | nil;
|
|
542
542
|
alignof(type: LuaCTypeSpec): number;
|
|
543
543
|
offsetof(type: LuaCTypeSpec, field: string): (number, number?, number?);
|
|
@@ -553,10 +553,10 @@ interface FFILib {
|
|
|
553
553
|
declare ffi: FFILib;
|
|
554
554
|
|
|
555
555
|
interface JITProfileLib {
|
|
556
|
-
start(mode: string, callback: (thread:
|
|
556
|
+
start(mode: string, callback: (thread: thread, samples: number, vmstate: string) => void): void;
|
|
557
557
|
stop(): void;
|
|
558
558
|
dumpstack(format: string, depth: number): string;
|
|
559
|
-
dumpstack(thread:
|
|
559
|
+
dumpstack(thread: thread, format: string, depth: number): string;
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
interface JITFunctionInfo {
|
|
@@ -603,16 +603,16 @@ interface JITUtilLib {
|
|
|
603
603
|
interface LuaStringBuffer {
|
|
604
604
|
put(value: string | number | table, ...: string | number | table): LuaStringBuffer;
|
|
605
605
|
putf(format: string, ...: string | number | table): LuaStringBuffer;
|
|
606
|
-
putcdata(value:
|
|
607
|
-
set(value: string |
|
|
606
|
+
putcdata(value: cdata, length: number): LuaStringBuffer;
|
|
607
|
+
set(value: string | cdata, length?: number): LuaStringBuffer;
|
|
608
608
|
reset(): LuaStringBuffer;
|
|
609
609
|
free(): void;
|
|
610
|
-
reserve(size: number): (
|
|
610
|
+
reserve(size: number): (cdata, number);
|
|
611
611
|
commit(used: number): LuaStringBuffer;
|
|
612
612
|
skip(length: number): LuaStringBuffer;
|
|
613
613
|
get(length?: number, ...: number | nil): (string, ...string);
|
|
614
614
|
tostring(): string;
|
|
615
|
-
ref(): (
|
|
615
|
+
ref(): (cdata, number);
|
|
616
616
|
encode(value: any): LuaStringBuffer;
|
|
617
617
|
decode(): any;
|
|
618
618
|
}
|
package/lib/tlua.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tlua/tlua-win32-arm64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
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": "420f9a7f944e2a346b530bc9fdbab6e6a6bcbc72",
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|
|
38
38
|
"tag": "latest"
|