Skip to content

Commit

Permalink
chore: Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Jul 19, 2023
1 parent ce12eca commit 5bd85dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions packages/notifier/src/storesub.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ export const makeStoredSubscription = (

/** @type {StoredSubscription<T>} */
const storesub = Far('StoredSubscription', {
// @ts-expect-error getStoreKey type does not have `subscription`
getStoreKey: async () => {
if (!storageNode) {
return harden({ subscription });
return /** @type {Awaited<ReturnType<StoredSubscription<T>['getStoreKey']>>} */ (
harden({ subscription })
);
}
const storeKey = await E(storageNode).getStoreKey();
return harden({ ...storeKey, subscription });
Expand Down
6 changes: 1 addition & 5 deletions packages/notifier/src/types-ambient.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,7 @@
* identifies children by restricted ASCII name and is associated with arbitrary
* string-valued data for each node, defaulting to the empty string.
*
* @typedef {object} StorageNode
* @property {(data: string) => Promise<void>} setValue publishes some data (append to the node)
* @property {() => string} getPath the chain storage path at which the node was constructed
* @property {() => Promise<VStorageKey>} getStoreKey DEPRECATED use getPath
* @property {(subPath: string, options?: {sequence?: boolean}) => StorageNode} makeChildNode
* @typedef {import('@agoric/internal/src/lib-chainStorage').StorageNode} StorageNode
*/

/**
Expand Down
3 changes: 3 additions & 0 deletions packages/notifier/tools/testSupports.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export const makeFakeStorage = (path, publication) => {
publication.updateState(value);
}
},
delete: async () => {
throw Error('not implemented');
},
makeChildNode: () => storage,
countSetValueCalls: () => setValueCalls,
});
Expand Down

0 comments on commit 5bd85dd

Please sign in to comment.