X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=typescript_strings.py;h=0d3036429dda8d81db04f3c7c5b8535c0cabb614;hb=0a60abbb2da8e4a4c5211cb0edd969f69b6b17da;hp=c8fcfc93c1a92f579483a43b4a8c987721b7d466;hpb=45accdbc29db69da15f49ea8dea671a4bfbf895b;p=ldk-java diff --git a/typescript_strings.py b/typescript_strings.py index c8fcfc93..0d303642 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -191,7 +191,7 @@ export function encodeUint64Array (inputArray: BigUint64Array|Array): nu /* @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; } @@ -779,8 +779,12 @@ import * as bindings from '../bindings.mjs' 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""" -/* @internal */ +/** + * {enum_comment_formatted} + */ export enum {struct_name} {{ {out_typescript_enum_fields} }}