Skip to content

Commit 263aaad

Browse files
committed
Fix Stores type no longer available
1 parent 84b5aaf commit 263aaad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/svelte-ux/src/lib/stores/debounceStore.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { derived, get, type Stores } from 'svelte/store';
1+
import { derived, get, type Readable } from 'svelte/store';
22

3-
function debounceStore<T extends Stores>(original: T, timeout = 300) {
3+
function debounceStore<T extends Readable<any>>(original: T, timeout = 300) {
44
return derived(
55
original,
66
($original, set) => {
@@ -10,7 +10,6 @@ function debounceStore<T extends Stores>(original: T, timeout = 300) {
1010
clearTimeout(timer);
1111
};
1212
},
13-
// @ts-expect-error
1413
get(original)
1514
);
1615
}

0 commit comments

Comments
 (0)