projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch to .mts files and build typescript bindings in genbindings.sh
[ldk-java]
/
typescript_strings.py
diff --git
a/typescript_strings.py
b/typescript_strings.py
index 29ccc3e45933e5819b3a4a61cbb1c29b24e6c351..914c0189cf0167dd3fcf9dafa616f2eeb306e383 100644
(file)
--- a/
typescript_strings.py
+++ b/
typescript_strings.py
@@
-282,11
+282,11
@@
void __attribute__((visibility("default"))) TS_free(uint32_t ptr) {
self.hu_struct_file_prefix = f"""
import CommonBase from './CommonBase';
self.hu_struct_file_prefix = f"""
import CommonBase from './CommonBase';
-import * as bindings from '../bindings
' // TODO: figure out location
+import * as bindings from '../bindings
.mjs'
"""
self.c_fn_ty_pfx = ""
"""
self.c_fn_ty_pfx = ""
- self.file_ext = ".ts"
+ self.file_ext = ".
m
ts"
self.ptr_c_ty = "uint32_t"
self.ptr_native_ty = "number"
self.result_c_ty = "uint32_t"
self.ptr_c_ty = "uint32_t"
self.ptr_native_ty = "number"
self.result_c_ty = "uint32_t"