[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / Option_EventZ.mts
index ea83cca44b539abdbde366d3cfc3bf1eb37b9136..4d48baf499c1a4c1c75a1cc48688628f740601d8 100644 (file)
@@ -359,9 +359,9 @@ import * as bindings from '../bindings.mjs'
  * An enum which can either contain a crate::lightning::util::events::Event or not
  */
 export class Option_EventZ extends CommonBase {
-       protected constructor(_dummy: object, ptr: number) { super(ptr, bindings.COption_EventZ_free); }
+       protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.COption_EventZ_free); }
        /* @internal */
-       public static constr_from_ptr(ptr: number): Option_EventZ {
+       public static constr_from_ptr(ptr: bigint): Option_EventZ {
                const raw_ty: number = bindings.LDKCOption_EventZ_ty_from_ptr(ptr);
                switch (raw_ty) {
                        case 0: return new Option_EventZ_Some(ptr);
@@ -375,7 +375,7 @@ export class Option_EventZ extends CommonBase {
         * Constructs a new COption_EventZ containing a crate::lightning::util::events::Event
         */
        public static constructor_some(o: Event): Option_EventZ {
-               const ret: number = bindings.COption_EventZ_some(CommonBase.get_ptr_of(o));
+               const ret: bigint = bindings.COption_EventZ_some(CommonBase.get_ptr_of(o));
                const ret_hu_conv: Option_EventZ = Option_EventZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
@@ -385,14 +385,14 @@ export class Option_EventZ extends CommonBase {
         * Constructs a new COption_EventZ containing nothing
         */
        public static constructor_none(): Option_EventZ {
-               const ret: number = bindings.COption_EventZ_none();
+               const ret: bigint = bindings.COption_EventZ_none();
                const ret_hu_conv: Option_EventZ = Option_EventZ.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_EventZ_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.COption_EventZ_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -401,7 +401,7 @@ export class Option_EventZ extends CommonBase {
         * but with all dynamically-allocated buffers duplicated in new buffers.
         */
        public clone(): Option_EventZ {
-               const ret: number = bindings.COption_EventZ_clone(this.ptr);
+               const ret: bigint = bindings.COption_EventZ_clone(this.ptr);
                const ret_hu_conv: Option_EventZ = Option_EventZ.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -412,9 +412,9 @@ export class Option_EventZ extends CommonBase {
 export class Option_EventZ_Some extends Option_EventZ {
        public some: Event;
        /* @internal */
-       public constructor(ptr: number) {
+       public constructor(ptr: bigint) {
                super(null, ptr);
-               const some: number = bindings.LDKCOption_EventZ_Some_get_some(ptr);
+               const some: bigint = bindings.LDKCOption_EventZ_Some_get_some(ptr);
                const some_hu_conv: Event = Event.constr_from_ptr(some);
                        CommonBase.add_ref_from(some_hu_conv, this);
                this.some = some_hu_conv;
@@ -423,7 +423,7 @@ export class Option_EventZ_Some extends Option_EventZ {
 /** A Option_EventZ of type None */
 export class Option_EventZ_None extends Option_EventZ {
        /* @internal */
-       public constructor(ptr: number) {
+       public constructor(ptr: bigint) {
                super(null, ptr);
        }
 }