projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated TypeScript Bindings
[ldk-java]
/
ts
/
structs
/
Type.mts
diff --git
a/ts/structs/Type.mts
b/ts/structs/Type.mts
index 97ee7c2e99448b44b96fb98b45333462503c79df..ac6bd670ce2ed0c7203375f7ab011f2767b3dfe0 100644
(file)
--- a/
ts/structs/Type.mts
+++ b/
ts/structs/Type.mts
@@
-280,13
+280,12
@@
import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor
import CommonBase from './CommonBase.mjs';
import * as bindings from '../bindings.mjs'
import CommonBase from './CommonBase.mjs';
import * as bindings from '../bindings.mjs'
-import * as InternalUtils from '../InternalUtils.mjs'
export interface TypeInterface {
type_id(): number;
export interface TypeInterface {
type_id(): number;
- debug_str():
S
tring;
+ debug_str():
s
tring;
write(): Uint8Array;
}
write(): Uint8Array;
}
@@
-311,13
+310,15
@@
export class Type extends CommonBase {
const ret: number = arg.type_id();
return ret;
},
const ret: number = arg.type_id();
return ret;
},
- debug_str (): String {
- const ret: String = arg.debug_str();
- return ret;
+ debug_str (): number {
+ const ret: string = arg.debug_str();
+ const result: number = bindings.encodeString(ret);
+ return result;
},
},
- write ():
Uint8Array
{
+ write ():
number
{
const ret: Uint8Array = arg.write();
const ret: Uint8Array = arg.write();
- return ret;
+ const result: number = bindings.encodeUint8Array(ret);
+ return result;
},
} as bindings.LDKType;
const ptr: number = bindings.LDKType_new(structImplementation);
},
} as bindings.LDKType;
const ptr: number = bindings.LDKType_new(structImplementation);
@@
-331,14
+332,16
@@
export class Type extends CommonBase {
return ret;
}
return ret;
}
- public debug_str(): String {
- const ret: String = bindings.Type_debug_str(this.ptr);
- return ret;
+ public debug_str(): string {
+ const ret: number = bindings.Type_debug_str(this.ptr);
+ const ret_conv: string = bindings.decodeString(ret);
+ return ret_conv;
}
public write(): Uint8Array {
}
public write(): Uint8Array {
- const ret: Uint8Array = bindings.Type_write(this.ptr);
- return ret;
+ const ret: number = bindings.Type_write(this.ptr);
+ const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+ return ret_conv;
}
public clone_ptr(): number {
}
public clone_ptr(): number {