chore: tidy up (#16957)

pull/16950/head
Rich Harris 1 month ago committed by GitHub
parent d6d13ced08
commit 470d61221e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -100,7 +100,7 @@ declare namespace $state {
* you must reassign it. * you must reassign it.
* *
* Example: * Example:
* ```ts * ```svelte
* <script> * <script>
* let items = $state.raw([0]); * let items = $state.raw([0]);
* *
@ -109,7 +109,7 @@ declare namespace $state {
* }; * };
* </script> * </script>
* *
* <button on:click={addItem}> * <button onclick={addItem}>
* {items.join(', ')} * {items.join(', ')}
* </button> * </button>
* ``` * ```
@ -124,7 +124,7 @@ declare namespace $state {
* To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`: * To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`:
* *
* Example: * Example:
* ```ts * ```svelte
* <script> * <script>
* let counter = $state({ count: 0 }); * let counter = $state({ count: 0 });
* *

@ -29,7 +29,7 @@ import { queue_micro_task } from '../task.js';
import * as e from '../../errors.js'; import * as e from '../../errors.js';
import * as w from '../../warnings.js'; import * as w from '../../warnings.js';
import { DEV } from 'esm-env'; import { DEV } from 'esm-env';
import { Batch, current_batch, effect_pending_updates } from '../../reactivity/batch.js'; import { Batch, effect_pending_updates } from '../../reactivity/batch.js';
import { internal_set, source } from '../../reactivity/sources.js'; import { internal_set, source } from '../../reactivity/sources.js';
import { tag } from '../../dev/tracing.js'; import { tag } from '../../dev/tracing.js';
import { createSubscriber } from '../../../../reactivity/create-subscriber.js'; import { createSubscriber } from '../../../../reactivity/create-subscriber.js';

@ -3198,7 +3198,7 @@ declare namespace $state {
* you must reassign it. * you must reassign it.
* *
* Example: * Example:
* ```ts * ```svelte
* <script> * <script>
* let items = $state.raw([0]); * let items = $state.raw([0]);
* *
@ -3207,7 +3207,7 @@ declare namespace $state {
* }; * };
* </script> * </script>
* *
* <button on:click={addItem}> * <button onclick={addItem}>
* {items.join(', ')} * {items.join(', ')}
* </button> * </button>
* ``` * ```
@ -3222,7 +3222,7 @@ declare namespace $state {
* To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`: * To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`:
* *
* Example: * Example:
* ```ts * ```svelte
* <script> * <script>
* let counter = $state({ count: 0 }); * let counter = $state({ count: 0 });
* *

Loading…
Cancel
Save