From 8b0ec4cddfb6a2244c769c60231f6d7deee5fc01 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Mon, 26 Feb 2024 15:51:49 -0800 Subject: [PATCH] chore(types): publishResult --- packages/smart-wallet/src/offerWatcher.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/smart-wallet/src/offerWatcher.js b/packages/smart-wallet/src/offerWatcher.js index affcc45984a..97309cd6b7d 100644 --- a/packages/smart-wallet/src/offerWatcher.js +++ b/packages/smart-wallet/src/offerWatcher.js @@ -153,6 +153,7 @@ export const prepareOfferWatcher = baggage => { ); }, + /** @param {unknown} result */ publishResult(result) { const { state, facets } = this; @@ -169,6 +170,7 @@ export const prepareOfferWatcher = baggage => { facets.helper.updateStatus({ result }); break; case 'copyRecord': + // @ts-expect-error narrowed by passStyle if ('invitationMakers' in result) { // save for continuing invitation offer @@ -176,6 +178,7 @@ export const prepareOfferWatcher = baggage => { String(state.status.id), state.invitationAmount, result.invitationMakers, + // @ts-expect-error narrowed by passStyle result.publicSubscribers, ); }