@tlua/tlua-win32-arm64 0.0.26 → 0.0.28

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.
@@ -60,7 +60,6 @@ interface Promise<T> {
60
60
 
61
61
  interface PromiseConstructor {
62
62
  readonly prototype: Promise<any>;
63
- new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
64
63
  resolve<T>(value: T | PromiseLike<T>): Promise<T>;
65
64
  resolve(): Promise<void>;
66
65
  }
@@ -110,9 +109,6 @@ type NonNullable<T> = T & {};
110
109
  /** Obtain the return type of a function type */
111
110
  type ReturnType<T extends (...: any) => any> = T extends (...: any) => infer R ? R : any;
112
111
 
113
- /** Obtain the instance type of a constructor function type */
114
- type InstanceType<T extends new (...: any) => any> = T extends new (...: any) => infer R ? R : any;
115
-
116
112
  /** Recursively unwrap the value type of a thenable */
117
113
  type Awaited<T> = T extends null | undefined ? T :
118
114
  T extends table & { then(onfulfilled: infer F, ...: infer _): any; } ?
@@ -543,7 +539,7 @@ interface FFILib {
543
539
  readonly arch: string;
544
540
  cdef(definition: string): void;
545
541
  load(name: string, global?: boolean): LuaCNamespace;
546
- "new": (type: LuaCTypeSpec, ...: any) => cdata;
542
+ new: (type: LuaCTypeSpec, ...: any) => cdata;
547
543
  "typeof": (type: LuaCTypeSpec, ...: any) => LuaCType;
548
544
  cast(type: LuaCTypeSpec, initializer: any): cdata;
549
545
  metatype(type: LuaCTypeSpec, metatable: table): LuaCType;
@@ -636,11 +632,8 @@ interface StringBufferOptions {
636
632
  }
637
633
 
638
634
  interface StringBufferLib {
639
- // Quoted, as ffi's `new` is: a bare `new(...)` member declares a CONSTRUCT
640
- // signature, which would leave `buffer.new(16)` with no `new` property at
641
- // all. tlua has no `new` expression, so the name is only ever a member.
642
- "new"(size?: number, options?: StringBufferOptions): LuaStringBuffer;
643
- "new"(options: StringBufferOptions): LuaStringBuffer;
635
+ new(size?: number, options?: StringBufferOptions): LuaStringBuffer;
636
+ new(options: StringBufferOptions): LuaStringBuffer;
644
637
  encode(value: any): string;
645
638
  decode(value: string): any;
646
639
  }
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.26",
3
+ "version": "0.0.28",
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": "f5115be10c6562d6d4ddee74d652164f9900ac73",
35
+ "gitHead": "99a06bf22a2f4cd0558f52d3786dba782c782333",
36
36
  "publishConfig": {
37
37
  "access": "public",
38
38
  "tag": "latest"