[TS] Update auto-generated bindings with changes + upstream changes
[ldk-java] / ts / structs / NodeInfo.mts
index bd0600fff29e9524ae4e21631ee2fae920a0adbf..0fa45212acd000e582f236ce1d004c11d70c3905 100644 (file)
@@ -365,6 +365,17 @@ export class NodeInfo extends CommonBase {
                super(ptr, bindings.NodeInfo_free);
        }
 
+       /**
+        * All valid channels a node has announced
+        * 
+        * Returns a copy of the field.
+        */
+       public get_channels(): bigint[] {
+               const ret: number = bindings.NodeInfo_get_channels(this.ptr);
+               const ret_conv: bigint[] = bindings.decodeUint64Array(ret);
+               return ret_conv;
+       }
+
        /**
         * All valid channels a node has announced
         */