[TS] Make compiler checks a bit more aggressive, fix indentation
[ldk-java] / ts / test / tests.mts
index 85c1fb3c1dd71c6912b4e1f9f538fce344dca5c7..8f832e4279bda5cc240926a6ca77b681a9f0c6c4 100644 (file)
@@ -1,7 +1,7 @@
 import * as rawldk from "../bindings.mjs";
 import * as ldk from "../index.mjs";
 
-const tests = [];
+const tests: Array<Function> = [];
 
 tests.push(async () => {
        const result = rawldk.CResult_boolLightningErrorZ_ok(true);
@@ -45,7 +45,7 @@ tests.push(async () => {
        return true;
 });
 
-export async function run_tests(wasm_path) {
+export async function run_tests(wasm_path: string) {
        await rawldk.initializeWasm(wasm_path);
 
        var test_runs = [];