From 264da48887ff14b556047b8a3a2e0f2d2f3ee14a Mon Sep 17 00:00:00 2001 From: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Date: Thu, 8 Jun 2023 20:47:10 +0545 Subject: [PATCH] fix: derived types (#8700) * fix: derived store types * changeset --- .changeset/gentle-pumas-chew.md | 5 +++++ packages/svelte/src/runtime/store/index.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/gentle-pumas-chew.md diff --git a/.changeset/gentle-pumas-chew.md b/.changeset/gentle-pumas-chew.md new file mode 100644 index 0000000000..949837bbff --- /dev/null +++ b/.changeset/gentle-pumas-chew.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: derived store types diff --git a/packages/svelte/src/runtime/store/index.js b/packages/svelte/src/runtime/store/index.js index c0c20a885b..3950e5ff4e 100644 --- a/packages/svelte/src/runtime/store/index.js +++ b/packages/svelte/src/runtime/store/index.js @@ -97,7 +97,7 @@ export function writable(value, start = noop) { * @template T * @overload * @param {S} stores - input stores - * @param {(values: import('./public.js').StoresValues, set: (value: T) => void, update: (fn: import('./public.js').Updater) => void) => import('./public.js').Unsubscriber | void} fn - function callback that aggregates the values + * @param {(values: import('./private.js').StoresValues, set: (value: T) => void, update: (fn: import('./public.js').Updater) => void) => import('./public.js').Unsubscriber | void} fn - function callback that aggregates the values * @param {T} [initial_value] - initial value * @returns {import('./public.js').Readable} */ @@ -110,7 +110,7 @@ export function writable(value, start = noop) { * @template T * @overload * @param {S} stores - input stores - * @param {(values: import('./public.js').StoresValues) => T} fn - function callback that aggregates the values + * @param {(values: import('./private.js').StoresValues) => T} fn - function callback that aggregates the values * @param {T} [initial_value] - initial value * @returns {import('./public.js').Readable} */