From 00d2a225cd01ce886b831bdefed8038d0053ab9e Mon Sep 17 00:00:00 2001 From: gtmnayan Date: Tue, 6 Jun 2023 08:30:33 +0545 Subject: [PATCH 1/2] fix: derived store types --- packages/svelte/src/runtime/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/src/runtime/store/index.js b/packages/svelte/src/runtime/store/index.js index c0c20a885b86..3950e5ff4e6c 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} */ From e0ad6a677ff01a1e5306e8b62a7d9310d62d315e Mon Sep 17 00:00:00 2001 From: gtmnayan Date: Thu, 8 Jun 2023 19:42:15 +0545 Subject: [PATCH 2/2] changeset --- .changeset/gentle-pumas-chew.md | 5 +++++ 1 file changed, 5 insertions(+) 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 000000000000..949837bbff61 --- /dev/null +++ b/.changeset/gentle-pumas-chew.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: derived store types