From 6e0290e990066bf86a18bc1798ac927457530c1e Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Sat, 20 Jan 2024 07:50:18 -0800 Subject: [PATCH] chore(types): reduce casting's maxNodeModuleJsDepth --- packages/casting/tsconfig.json | 2 +- packages/notifier/src/notifier.js | 2 +- packages/notifier/src/publish-kit.js | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/casting/tsconfig.json b/packages/casting/tsconfig.json index 4b2ca5774378..947a3cb7ccd6 100644 --- a/packages/casting/tsconfig.json +++ b/packages/casting/tsconfig.json @@ -3,7 +3,7 @@ "extends": "../../tsconfig.json", "compilerOptions": { "allowSyntheticDefaultImports": true, - "maxNodeModuleJsDepth": 2, + "maxNodeModuleJsDepth": 1, }, "include": [ "*.js", diff --git a/packages/notifier/src/notifier.js b/packages/notifier/src/notifier.js index 7dab83420386..0cb75efbdcdd 100644 --- a/packages/notifier/src/notifier.js +++ b/packages/notifier/src/notifier.js @@ -1,6 +1,6 @@ /// -import { assert } from '@agoric/assert'; +import { assert } from '@endo/errors'; import { E, Far } from '@endo/far'; import './types-ambient.js'; diff --git a/packages/notifier/src/publish-kit.js b/packages/notifier/src/publish-kit.js index e3ab7496c68e..2e8d362a9957 100644 --- a/packages/notifier/src/publish-kit.js +++ b/packages/notifier/src/publish-kit.js @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/prefer-ts-expect-error -- XXX */ /// import { canBeDurable, prepareExoClassKit } from '@agoric/vat-data'; @@ -419,12 +420,15 @@ export const prepareDurablePublishKit = (baggage, kindName) => { // accepts new values. publisher: { publish(value) { + // @ts-ignore XXX type resolution losing ThisType from prepareExoClassKit advanceDurablePublishKit(this, value); }, finish(finalValue) { + // @ts-ignore XXX type resolution losing ThisType from prepareExoClassKit advanceDurablePublishKit(this, finalValue, 'finished'); }, fail(reason) { + // @ts-ignore XXX type resolution losing ThisType from prepareExoClassKit advanceDurablePublishKit(this, reason, 'failed'); }, },