Skip to content

Commit

Permalink
chore(types): reduce casting's maxNodeModuleJsDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 21, 2024
1 parent 2d4114f commit a49db10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/casting/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"maxNodeModuleJsDepth": 2,
"maxNodeModuleJsDepth": 1,
},
"include": [
"*.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/notifier/src/publish-kit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/prefer-ts-expect-error -- XXX */
/// <reference types="ses"/>

import { canBeDurable, prepareExoClassKit } from '@agoric/vat-data';
Expand Down Expand Up @@ -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');
},
},
Expand Down

0 comments on commit a49db10

Please sign in to comment.