diff --git a/packages/frontend/src/stores/rpcReadable.ts b/packages/frontend/src/stores/rpcReadable.ts index 0f6a1f2b..08200a33 100644 --- a/packages/frontend/src/stores/rpcReadable.ts +++ b/packages/frontend/src/stores/rpcReadable.ts @@ -16,7 +16,7 @@ * SPDX-License-Identifier: Apache-2.0 ***********************************************************************/ -import { writable, type Invalidator, type Subscriber, type Unsubscriber, type Readable } from 'svelte/store'; +import { writable, type Subscriber, type Unsubscriber, type Readable } from 'svelte/store'; import { rpcBrowser } from '/@/api/client'; import type { Subscriber as SharedSubscriber } from '/@shared/src/messages/MessageProxy'; @@ -34,7 +34,7 @@ export function RPCReadable( const debouncedUpdater = debounce(updater); const origWritable = writable(value); - function subscribe(this: void, run: Subscriber, invalidate?: Invalidator): Unsubscriber { + function subscribe(this: void, run: Subscriber, invalidate?: () => void): Unsubscriber { const rcpSubscribes: SharedSubscriber[] = []; for (const subscriptionEvent of subscriptionEvents) {