Closed
Description
Describe the bug
It's totally valid to create a store without an initial value, but TypeScript complains:
Expected behavior
store = writable()
etc should be accepted by TypeScript. I guess value: T
here just needs to be value?: T
(and similarly for readable
)?
svelte/src/runtime/store/index.ts
Line 64 in 086cff2
Information about your Svelte project:
It's a SvelteKit project using svelte@3.37.0
Severity
Minor — easily worked around with writable(undefined)
Metadata
Metadata
Assignees
Labels
No labels