From 57f915e8647c88a589bc659a971566d4012df34f Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 29 Nov 2022 10:19:34 +0200 Subject: [PATCH] chore: add explicit type for returned signatures --- ts_src/psbt.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts_src/psbt.ts b/ts_src/psbt.ts index 824e70a87..aa546bc71 100644 --- a/ts_src/psbt.ts +++ b/ts_src/psbt.ts @@ -995,7 +995,9 @@ export class Psbt { sighashTypes, ); - const signaturePromises: Promise[] = []; + const signaturePromises: Promise< + { tapKeySig: Buffer } | { tapScriptSig: TapScriptSig[] } + >[] = []; const tapKeyHash = hashesForSig.filter(h => !h.leafHash)[0]; if (tapKeyHash) { const tapKeySigPromise = Promise.resolve(