@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.
@@ -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 | LuaUserdata): LuaUserdata;
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
- * `LuaThread` is opaque and carries no packs (Luau makes the same call), and wrap
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): LuaThread;
246
- resume(thread: LuaThread, ...: any): (boolean, ...any);
247
- running(): LuaThread | nil;
248
- status(thread: LuaThread): "running" | "suspended" | "normal" | "dead";
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: LuaThread): (function?, string?, number?);
450
+ gethook(thread: thread): (function?, string?, number?);
451
451
  getinfo(fn: number | function, what?: string): LuaDebugInfo | nil;
452
- getinfo(thread: LuaThread, fn: number | function, what?: string): LuaDebugInfo | nil;
452
+ getinfo(thread: thread, fn: number | function, what?: string): LuaDebugInfo | nil;
453
453
  getlocal(level: number, localIndex: number): (string?, any);
454
- getlocal(thread: LuaThread, level: number, localIndex: number): (string?, any);
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: LuaThread, hook?: function, mask?: string, count?: number): void;
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: LuaThread, level: number, localIndex: number, value: any): string | nil;
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: LuaThread, message?: any, level?: number): string;
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): LuaCData;
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 | LuaCData;
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) => LuaCData;
536
+ "new": (type: LuaCTypeSpec, ...: any) => cdata;
537
537
  "typeof": (type: LuaCTypeSpec, ...: any) => LuaCType;
538
- cast(type: LuaCTypeSpec, initializer: any): LuaCData;
538
+ cast(type: LuaCTypeSpec, initializer: any): cdata;
539
539
  metatype(type: LuaCTypeSpec, metatable: table): LuaCType;
540
- gc(value: LuaCData, finalizer?: function): LuaCData;
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: LuaThread, samples: number, vmstate: string) => void): void;
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: LuaThread, format: string, depth: number): string;
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: LuaCData, length: number): LuaStringBuffer;
607
- set(value: string | LuaCData, length?: number): LuaStringBuffer;
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): (LuaCData, 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(): (LuaCData, number);
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.14",
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": "33ca336d9d59d6a33a71fba67d684d66cea519d9",
35
+ "gitHead": "420f9a7f944e2a346b530bc9fdbab6e6a6bcbc72",
36
36
  "publishConfig": {
37
37
  "access": "public",
38
38
  "tag": "latest"