Skip to content

Commit

Permalink
chore(types): adapt to new coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Apr 26, 2024
1 parent dad9559 commit 9d172cd
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/agoric-cli/src/lib/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export const makeAmountFormatter = assets => amt => {
return [issuerName, Number(value) / 10 ** decimalPlaces];
case 'set':
assert(Array.isArray(value));
// @ts-expect-error narrowed
if (value[0]?.handle?.iface?.includes('InvitationHandle')) {
// @ts-expect-error narrowed
return [issuerName, value.map(v => v.description)];
}
return [issuerName, value];
Expand Down
1 change: 1 addition & 0 deletions packages/solo/src/pipe-entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const main = async () => {
mutex.resolve(undefined);
return;
}
/** @type {any} */
const as = parse(`${msg}`);
deliverator(...as).then(() => send('go'));
});
Expand Down
1 change: 1 addition & 0 deletions packages/solo/src/pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const connectToPipe = async ({ method, args, deliverInboundToMbx }) => {
return;
}
// console.log('pipe.js', msg);
/** @type {any} */
const as = parse(`${msg}`);
deliverInboundToMbx(...as).then(() => cp.send('go'));
});
Expand Down
4 changes: 2 additions & 2 deletions packages/vat-data/src/vat-data-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { provideLazy } from '@agoric/store';
let VatDataGlobal;
if ('VatData' in globalThis) {
globalThis.VatData || Fail`VatData defined in global as null or undefined`;
// @ts-expect-error XXX
VatDataGlobal = globalThis.VatData;
// XXX types incompatibility
VatDataGlobal = /** @type {any} */ (globalThis.VatData);
} else {
// XXX this module has been known to get imported (transitively) in cases that
// never use it so we make a version that will satisfy module resolution but
Expand Down
1 change: 0 additions & 1 deletion packages/vats/test/test-bootstrapPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ test.before(async (/** @type {CentralSupplyTestContext} */ t) => {
};

t.context = await deeplyFulfilled(
// @ts-expect-error XXX
harden({
zoe,
feeMintAccess: feeMintAccessP,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { makeNotifier } from '@agoric/notifier';
* @param {Amount<'nat'>} amountIn
* @param {Amount<'nat'>} amountOut
* @param {import('@agoric/time').TimerService} timer
* @param {import('@agoric/time').Timestamp} timestamp
* @param {import('@agoric/time').TimestampRecord} timestamp
* @param {ERef<Mint<'set', PriceDescription>>} quoteMint
* @returns {Promise<PriceQuote>}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/tools/types-ambient.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* The quoted result of trading `amountIn`
* @property {import('@endo/pass-style').RemotableObject & import('@agoric/time').TimerService} timer
* The service that gave the `timestamp`
* @property {import('@agoric/time').Timestamp} timestamp
* @property {import('@agoric/time').TimestampRecord} timestamp
* A timestamp according to `timer` for the quote
* @property {any} [conditions]
* Additional conditions for the quote
Expand Down

0 comments on commit 9d172cd

Please sign in to comment.