Skip to content

Commit f343170

Browse files
authored
docs: fix $effect.root jsdoc formatting (#16411)
1 parent 9e1e713 commit f343170

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/svelte/src/ambient.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ declare namespace $effect {
295295
* let count = $state(0);
296296
*
297297
* const cleanup = $effect.root(() => {
298-
* $effect(() => {
299-
* console.log(count);
300-
* })
298+
* $effect(() => {
299+
* console.log(count);
300+
* })
301301
*
302-
* return () => {
303-
* console.log('effect root cleanup');
304-
* }
302+
* return () => {
303+
* console.log('effect root cleanup');
304+
* }
305305
* });
306306
* </script>
307307
*

packages/svelte/types/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,13 +3369,13 @@ declare namespace $effect {
33693369
* let count = $state(0);
33703370
*
33713371
* const cleanup = $effect.root(() => {
3372-
* $effect(() => {
3373-
* console.log(count);
3374-
* })
3372+
* $effect(() => {
3373+
* console.log(count);
3374+
* })
33753375
*
3376-
* return () => {
3377-
* console.log('effect root cleanup');
3378-
* }
3376+
* return () => {
3377+
* console.log('effect root cleanup');
3378+
* }
33793379
* });
33803380
* </script>
33813381
*

0 commit comments

Comments
 (0)