projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Gnu-sed on macosx if available
[ldk-java]
/
typescript_strings.py
diff --git
a/typescript_strings.py
b/typescript_strings.py
index c8fcfc93c1a92f579483a43b4a8c987721b7d466..0d3036429dda8d81db04f3c7c5b8535c0cabb614 100644
(file)
--- a/
typescript_strings.py
+++ b/
typescript_strings.py
@@
-191,7
+191,7
@@
export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>): nu
/* @internal */
export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
/* @internal */
export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
- if (arr.length != len) { throw new Error("Expected array of length " + len + "got " + arr.length); }
+ if (arr.length != len) { throw new Error("Expected array of length " + len + "
got " + arr.length); }
return arr;
}
return arr;
}
@@
-779,8
+779,12
@@
import * as bindings from '../bindings.mjs'
out_c = out_c + "\t}\n"
out_c = out_c + "}\n"
out_c = out_c + "\t}\n"
out_c = out_c + "}\n"
+ # Note that this is *not* marked /* @internal */ as we re-expose it directly in enums/
+ enum_comment_formatted = enum_doc_comment.replace("\n", "\n * ")
out_typescript = f"""
out_typescript = f"""
-/* @internal */
+/**
+ * {enum_comment_formatted}
+ */
export enum {struct_name} {{
{out_typescript_enum_fields}
}}
export enum {struct_name} {{
{out_typescript_enum_fields}
}}