Bindings updates
[ldk-java] / ts / structs / InitFeatures.ts
index 2987b614d890783f4bde3ff3eaa90c8cebeaff0e..e38641d2b125df40d1480d203ab87d4b6080d0da 100644 (file)
@@ -1,13 +1,21 @@
 
+            
 import CommonBase from './CommonBase';
 import * as bindings from '../bindings' // TODO: figure out location
 
-public class InitFeatures extends CommonBase {
-       InitFeatures(Object _dummy, long ptr) { super(ptr); }
-       @Override @SuppressWarnings("deprecation")
-       protected void finalize() throws Throwable {
-               super.finalize();
-               if (ptr != 0) { bindings.InitFeatures_free(ptr); }
-       }
 
+
+            export default class InitFeatures extends CommonBase {
+                constructor(_dummy: object, ptr: number) {
+                    super(ptr);
+                }
+
+                
+                protected finalize() {
+                    super.finalize();
+
+                    if (this.ptr != 0) {
+                        bindings.InitFeatures_free(this.ptr);
+                    }
+                }
 }