From 183c007ad93f566e46b7449e8df92fba165528a6 Mon Sep 17 00:00:00 2001 From: Chris Hibbert Date: Fri, 15 Dec 2023 09:22:14 -0800 Subject: [PATCH] chore: suppress type-checking errors for release branch --- packages/internal/src/callback.js | 1 + packages/smart-wallet/src/offerWatcher.js | 3 +++ .../src/proposals/upgrade-wallet-factory2-proposal.js | 1 + packages/vats/src/core/basic-behaviors.js | 1 + packages/vats/src/vat-bank.js | 1 + 5 files changed, 7 insertions(+) diff --git a/packages/internal/src/callback.js b/packages/internal/src/callback.js index 18b5fa82ef85..54782adf3d04 100644 --- a/packages/internal/src/callback.js +++ b/packages/internal/src/callback.js @@ -261,6 +261,7 @@ export const prepareAttenuator = ( */ const makeAttenuator = zone.exoClass( tag, + // @ts-expect-error release branch divergence interfaceGuard, /** * @param {object} opts diff --git a/packages/smart-wallet/src/offerWatcher.js b/packages/smart-wallet/src/offerWatcher.js index b291521174b9..56987ee9d7e4 100644 --- a/packages/smart-wallet/src/offerWatcher.js +++ b/packages/smart-wallet/src/offerWatcher.js @@ -46,6 +46,7 @@ import { UNPUBLISHED_RESULT } from './offers.js'; */ const watchForOfferResult = ({ resultWatcher }, seat) => { const p = E(seat).getOfferResult(); + // @ts-expect-error release branch divergence watchPromise(p, resultWatcher, seat); return p; }; @@ -56,6 +57,7 @@ const watchForOfferResult = ({ resultWatcher }, seat) => { */ const watchForNumWants = ({ numWantsWatcher }, seat) => { const p = E(seat).numWantsSatisfied(); + // @ts-expect-error release branch divergence watchPromise(p, numWantsWatcher, seat); return p; }; @@ -66,6 +68,7 @@ const watchForNumWants = ({ numWantsWatcher }, seat) => { */ const watchForPayout = ({ paymentWatcher }, seat) => { const p = E(seat).getPayouts(); + // @ts-expect-error release branch divergence watchPromise(p, paymentWatcher, seat); return p; }; diff --git a/packages/smart-wallet/src/proposals/upgrade-wallet-factory2-proposal.js b/packages/smart-wallet/src/proposals/upgrade-wallet-factory2-proposal.js index 60252d54616c..d145b1076b97 100644 --- a/packages/smart-wallet/src/proposals/upgrade-wallet-factory2-proposal.js +++ b/packages/smart-wallet/src/proposals/upgrade-wallet-factory2-proposal.js @@ -27,6 +27,7 @@ export const upgradeWalletFactory = async ( makeStorageNodeChild(chainStorage, WALLET_STORAGE_PATH_SEGMENT), provisionPoolStartResult, ]); + // @ts-expect-error release branch divergence const walletReviver = await E(ppFacets.creatorFacet).getWalletReviver(); const privateArgs = { diff --git a/packages/vats/src/core/basic-behaviors.js b/packages/vats/src/core/basic-behaviors.js index 1afbd331300b..28392af05a3f 100644 --- a/packages/vats/src/core/basic-behaviors.js +++ b/packages/vats/src/core/basic-behaviors.js @@ -485,6 +485,7 @@ export const makeAddressNameHubs = async ({ const { nameHub: namesByAddress, nameAdmin: namesByAddressAdmin } = makeNameHubKit(); produce.namesByAddress.resolve(namesByAddress); + // @ts-expect-error release branch divergence produce.namesByAddressAdmin.resolve(namesByAddressAdmin); const perAddress = address => { diff --git a/packages/vats/src/vat-bank.js b/packages/vats/src/vat-bank.js index d963d4bba111..e73f8e6ab57c 100644 --- a/packages/vats/src/vat-bank.js +++ b/packages/vats/src/vat-bank.js @@ -629,6 +629,7 @@ const prepareBankManager = ( ); const vp = makeVirtualPurse(feeVpc, feeKit); + // @ts-expect-error release branch divergence return E(vp).getDepositFacet(); },