Skip to content

Commit

Permalink
chore: fix removal of Invalidator type
Browse files Browse the repository at this point in the history
Signed-off-by: Tim deBoer <[email protected]>
  • Loading branch information
deboer-tim committed Jul 19, 2024
1 parent 8e0d03d commit 32c9b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/stores/rpcReadable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -34,7 +34,7 @@ export function RPCReadable<T>(
const debouncedUpdater = debounce(updater);
const origWritable = writable(value);

function subscribe(this: void, run: Subscriber<T>, invalidate?: Invalidator<T>): Unsubscriber {
function subscribe(this: void, run: Subscriber<T>, invalidate?: () => void): Unsubscriber {
const rcpSubscribes: SharedSubscriber[] = [];

for (const subscriptionEvent of subscriptionEvents) {
Expand Down

0 comments on commit 32c9b34

Please sign in to comment.