Update auto-generated TypeScript files
[ldk-java] / ts / InternalUtils.mts
diff --git a/ts/InternalUtils.mts b/ts/InternalUtils.mts
new file mode 100644 (file)
index 0000000..33f0235
--- /dev/null
@@ -0,0 +1,4 @@
+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); }
+       return arr;
+}
\ No newline at end of file