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