X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=typescript_strings.py;h=7c6e6ab5644b5abb99d926b5d527bb803957f531;hb=3c80c9d8174c6a4355b2fc0790288ea46e4631e4;hp=cbde654d453ae302847e8018fde36d1dbfebfc88;hpb=ba97d8dee5ef43b8b61c9a61e30789cdf8eb9c5e;p=ldk-java diff --git a/typescript_strings.py b/typescript_strings.py index cbde654d..7c6e6ab5 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -214,7 +214,7 @@ import * as bindings from '../bindings' // TODO: figure out location self.c_fn_args_pfx = "void* ctx_TODO" self.file_ext = ".ts" self.ptr_c_ty = "uint32_t" - self.ptr_native_ty = "uint32_t" + self.ptr_native_ty = "number" # "uint32_t" self.result_c_ty = "uint32_t" self.ptr_arr = "uint32_tArray" self.get_native_arr_len_call = ("", ".len") @@ -650,6 +650,9 @@ const wasm = wasmInstance.exports; return (out_typescript_bindings, out_typescript_human, out_c) + def trait_struct_inc_refcnt(self, ty_info): + return "" + def map_complex_enum(self, struct_name, variant_list, camel_to_snake): java_hu_type = struct_name.replace("LDK", "")