[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / Option_TypeZ.mts
index caddc94b243fb97dfb8bacf93023431497766259..5176306cd83a27f859c121151db5853a16d2e2a5 100644 (file)
@@ -359,9 +359,9 @@ import * as bindings from '../bindings.mjs'
  * An enum which can either contain a crate::lightning::ln::wire::Type or not
  */
 export class Option_TypeZ extends CommonBase {
-       protected constructor(_dummy: object, ptr: number) { super(ptr, bindings.COption_TypeZ_free); }
+       protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.COption_TypeZ_free); }
        /* @internal */
-       public static constr_from_ptr(ptr: number): Option_TypeZ {
+       public static constr_from_ptr(ptr: bigint): Option_TypeZ {
                const raw_ty: number = bindings.LDKCOption_TypeZ_ty_from_ptr(ptr);
                switch (raw_ty) {
                        case 0: return new Option_TypeZ_Some(ptr);
@@ -375,7 +375,7 @@ export class Option_TypeZ extends CommonBase {
         * Constructs a new COption_TypeZ containing a crate::lightning::ln::wire::Type
         */
        public static constructor_some(o: Type): Option_TypeZ {
-               const ret: number = bindings.COption_TypeZ_some(o == null ? 0 : CommonBase.get_ptr_of(o));
+               const ret: bigint = bindings.COption_TypeZ_some(o == null ? 0n : CommonBase.get_ptr_of(o));
                const ret_hu_conv: Option_TypeZ = Option_TypeZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                CommonBase.add_ref_from(ret_hu_conv, o);
@@ -386,14 +386,14 @@ export class Option_TypeZ extends CommonBase {
         * Constructs a new COption_TypeZ containing nothing
         */
        public static constructor_none(): Option_TypeZ {
-               const ret: number = bindings.COption_TypeZ_none();
+               const ret: bigint = bindings.COption_TypeZ_none();
                const ret_hu_conv: Option_TypeZ = Option_TypeZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.COption_TypeZ_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.COption_TypeZ_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -402,7 +402,7 @@ export class Option_TypeZ extends CommonBase {
         * but with all dynamically-allocated buffers duplicated in new buffers.
         */
        public clone(): Option_TypeZ {
-               const ret: number = bindings.COption_TypeZ_clone(this.ptr);
+               const ret: bigint = bindings.COption_TypeZ_clone(this.ptr);
                const ret_hu_conv: Option_TypeZ = Option_TypeZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -413,9 +413,9 @@ export class Option_TypeZ extends CommonBase {
 export class Option_TypeZ_Some extends Option_TypeZ {
        public some: Type;
        /* @internal */
-       public constructor(ptr: number) {
+       public constructor(ptr: bigint) {
                super(null, ptr);
-               const some: number = bindings.LDKCOption_TypeZ_Some_get_some(ptr);
+               const some: bigint = bindings.LDKCOption_TypeZ_Some_get_some(ptr);
                const ret_hu_conv: Type = new Type(null, some);
                        CommonBase.add_ref_from(ret_hu_conv, this);
                this.some = ret_hu_conv;
@@ -424,7 +424,7 @@ export class Option_TypeZ_Some extends Option_TypeZ {
 /** A Option_TypeZ of type None */
 export class Option_TypeZ_None extends Option_TypeZ {
        /* @internal */
-       public constructor(ptr: number) {
+       public constructor(ptr: bigint) {
                super(null, ptr);
        }
 }