Make genbindings.sh only build one of java/wasm, test wasm in CI
[ldk-java] / ts / structs / LockedChannelMonitor.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class LockedChannelMonitor extends CommonBase implements AutoCloseable {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 public close() {
15
16                     if (this.ptr != 0) {
17                         bindings.LockedChannelMonitor_free(this.ptr);
18                     }
19                 }
20 }