Skip to content

Commit 264da48

Browse files
authored
fix: derived types (#8700)
* fix: derived store types * changeset
1 parent 0b15bb6 commit 264da48

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/gentle-pumas-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: derived store types

packages/svelte/src/runtime/store/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function writable(value, start = noop) {
9797
* @template T
9898
* @overload
9999
* @param {S} stores - input stores
100-
* @param {(values: import('./public.js').StoresValues<S>, set: (value: T) => void, update: (fn: import('./public.js').Updater<T>) => void) => import('./public.js').Unsubscriber | void} fn - function callback that aggregates the values
100+
* @param {(values: import('./private.js').StoresValues<S>, set: (value: T) => void, update: (fn: import('./public.js').Updater<T>) => void) => import('./public.js').Unsubscriber | void} fn - function callback that aggregates the values
101101
* @param {T} [initial_value] - initial value
102102
* @returns {import('./public.js').Readable<T>}
103103
*/
@@ -110,7 +110,7 @@ export function writable(value, start = noop) {
110110
* @template T
111111
* @overload
112112
* @param {S} stores - input stores
113-
* @param {(values: import('./public.js').StoresValues<S>) => T} fn - function callback that aggregates the values
113+
* @param {(values: import('./private.js').StoresValues<S>) => T} fn - function callback that aggregates the values
114114
* @param {T} [initial_value] - initial value
115115
* @returns {import('./public.js').Readable<T>}
116116
*/

0 commit comments

Comments
 (0)