Skip to content

Commit 7acec08

Browse files
committed
chore(types): adapt to new coverage
1 parent 287b42e commit 7acec08

7 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/agoric-cli/src/lib/format.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export const makeAmountFormatter = assets => amt => {
5454
return [issuerName, Number(value) / 10 ** decimalPlaces];
5555
case 'set':
5656
assert(Array.isArray(value));
57+
// @ts-expect-error narrowed
5758
if (value[0]?.handle?.iface?.includes('InvitationHandle')) {
59+
// @ts-expect-error narrowed
5860
return [issuerName, value.map(v => v.description)];
5961
}
6062
return [issuerName, value];

packages/solo/src/pipe-entrypoint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const main = async () => {
2929
mutex.resolve(undefined);
3030
return;
3131
}
32+
/** @type {any} */
3233
const as = parse(`${msg}`);
3334
deliverator(...as).then(() => send('go'));
3435
});

packages/solo/src/pipe.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const connectToPipe = async ({ method, args, deliverInboundToMbx }) => {
3131
return;
3232
}
3333
// console.log('pipe.js', msg);
34+
/** @type {any} */
3435
const as = parse(`${msg}`);
3536
deliverInboundToMbx(...as).then(() => cp.send('go'));
3637
});

packages/vat-data/src/vat-data-bindings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { provideLazy } from '@agoric/store';
99
let VatDataGlobal;
1010
if ('VatData' in globalThis) {
1111
globalThis.VatData || Fail`VatData defined in global as null or undefined`;
12-
// @ts-expect-error XXX
13-
VatDataGlobal = globalThis.VatData;
12+
// XXX types incompatibility
13+
VatDataGlobal = /** @type {any} */ (globalThis.VatData);
1414
} else {
1515
// XXX this module has been known to get imported (transitively) in cases that
1616
// never use it so we make a version that will satisfy module resolution but

packages/vats/test/test-bootstrapPayment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ test.before(async (/** @type {CentralSupplyTestContext} */ t) => {
4444
};
4545

4646
t.context = await deeplyFulfilled(
47-
// @ts-expect-error XXX
4847
harden({
4948
zoe,
5049
feeMintAccess: feeMintAccessP,

packages/zoe/src/contractSupport/priceAuthorityTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { makeNotifier } from '@agoric/notifier';
1111
* @param {Amount<'nat'>} amountIn
1212
* @param {Amount<'nat'>} amountOut
1313
* @param {import('@agoric/time').TimerService} timer
14-
* @param {import('@agoric/time').Timestamp} timestamp
14+
* @param {import('@agoric/time').TimestampRecord} timestamp
1515
* @param {ERef<Mint<'set', PriceDescription>>} quoteMint
1616
* @returns {Promise<PriceQuote>}
1717
*/

packages/zoe/tools/types-ambient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* The quoted result of trading `amountIn`
2424
* @property {import('@endo/pass-style').RemotableObject & import('@agoric/time').TimerService} timer
2525
* The service that gave the `timestamp`
26-
* @property {import('@agoric/time').Timestamp} timestamp
26+
* @property {import('@agoric/time').TimestampRecord} timestamp
2727
* A timestamp according to `timer` for the quote
2828
* @property {any} [conditions]
2929
* Additional conditions for the quote

0 commit comments

Comments
 (0)