-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Describe the bug
I'm pretty sure that the code found here is Svelte 4--it'd be better to double check and make sure all code in the docs use Svelte 5 unless there's a reason not to.
If possible it'd be nice to run the migration from 4 -> 5, though that might not be applicable to code blocks in docs 🤷♂️
On a related note, is it best to actually have types for TS examples? The updated version in this instance would then read:
let a: number = $state(0);
let b: number = $state(0);
let total: number = $state(0);Perhaps given the preprocessor that isn't feasible?
Reproduction
Logs
System Info
All--docsSeverity
annoyance
Additional Information
Just keeping things tidy and consistent :)
Metadata
Metadata
Assignees
Labels
No labels