[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / ChannelTypeFeatures.mts
index f9dd516738c43cda8079c9acd1b442a43f914bd0..e6eb070f9c79bedc086dbc09a7abbde78649d1c4 100644 (file)
@@ -370,7 +370,7 @@ import * as bindings from '../bindings.mjs'
  */
 export class ChannelTypeFeatures extends CommonBase {
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(ptr, bindings.ChannelTypeFeatures_free);
        }
 
@@ -380,13 +380,13 @@ export class ChannelTypeFeatures extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public eq(b: ChannelTypeFeatures): boolean {
-               const ret: boolean = bindings.ChannelTypeFeatures_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+               const ret: boolean = bindings.ChannelTypeFeatures_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
                CommonBase.add_ref_from(this, b);
                return ret;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.ChannelTypeFeatures_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.ChannelTypeFeatures_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -394,7 +394,7 @@ export class ChannelTypeFeatures extends CommonBase {
         * Creates a copy of the ChannelTypeFeatures
         */
        public clone(): ChannelTypeFeatures {
-               const ret: number = bindings.ChannelTypeFeatures_clone(this.ptr);
+               const ret: bigint = bindings.ChannelTypeFeatures_clone(this.ptr);
                const ret_hu_conv: ChannelTypeFeatures = new ChannelTypeFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -404,7 +404,7 @@ export class ChannelTypeFeatures extends CommonBase {
         * Create a blank Features with no features set
         */
        public static constructor_empty(): ChannelTypeFeatures {
-               const ret: number = bindings.ChannelTypeFeatures_empty();
+               const ret: bigint = bindings.ChannelTypeFeatures_empty();
                const ret_hu_conv: ChannelTypeFeatures = new ChannelTypeFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
@@ -414,7 +414,7 @@ export class ChannelTypeFeatures extends CommonBase {
         * Creates a Features with the bits set which are known by the implementation
         */
        public static constructor_known(): ChannelTypeFeatures {
-               const ret: number = bindings.ChannelTypeFeatures_known();
+               const ret: bigint = bindings.ChannelTypeFeatures_known();
                const ret_hu_conv: ChannelTypeFeatures = new ChannelTypeFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
@@ -442,7 +442,7 @@ export class ChannelTypeFeatures extends CommonBase {
         * Read a ChannelTypeFeatures from a byte array, created by ChannelTypeFeatures_write
         */
        public static constructor_read(ser: Uint8Array): Result_ChannelTypeFeaturesDecodeErrorZ {
-               const ret: number = bindings.ChannelTypeFeatures_read(bindings.encodeUint8Array(ser));
+               const ret: bigint = bindings.ChannelTypeFeatures_read(bindings.encodeUint8Array(ser));
                const ret_hu_conv: Result_ChannelTypeFeaturesDecodeErrorZ = Result_ChannelTypeFeaturesDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }