-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StoresValues
no longer exported from svelte/store
#15594
Comments
It's currently private, so you could either:
import type { Readable } from 'svelte/store'; // if you haven't already
type StoresValues<T> =
T extends Readable<infer U> ? U : { [K in keyof T]: T[K] extends Readable<infer U> ? U : never }; I should have the pull request made in a few minutes. |
Yes. I've already copied it over. I just thought this change might be unnecessarily confusing for others migrating to Svelte 5. |
This type was never meant to be public - it only was by accident because we didn't know that not having Given that this is a type that is easily copied over I'd rather like to keep it that way. Therefore closing - thank you. |
Describe the bug
When migrating a project to Svelte 5, I discovered that
StoresValues
is no longer exported fromsvelte/store
. I know that stores are technically deprecated, but I don't see the need to make that type private. Instead, I would just remove it entirely in Svelte 6/7 when stores are eliminated as a feature and keep it public for now.Reproduction
import type { StoresValues } from 'svelte/store';
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: