File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
internal/client/dom/blocks Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ declare namespace $state {
100100 * you must reassign it.
101101 *
102102 * Example:
103- * ```ts
103+ * ```svelte
104104 * <script>
105105 * let items = $state.raw([0]);
106106 *
@@ -109,7 +109,7 @@ declare namespace $state {
109109 * };
110110 * </script>
111111 *
112- * <button on:click ={addItem}>
112+ * <button onclick ={addItem}>
113113 * {items.join(', ')}
114114 * </button>
115115 * ```
@@ -124,7 +124,7 @@ declare namespace $state {
124124 * To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`:
125125 *
126126 * Example:
127- * ```ts
127+ * ```svelte
128128 * <script>
129129 * let counter = $state({ count: 0 });
130130 *
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import { queue_micro_task } from '../task.js';
2929import * as e from '../../errors.js' ;
3030import * as w from '../../warnings.js' ;
3131import { DEV } from 'esm-env' ;
32- import { Batch , current_batch , effect_pending_updates } from '../../reactivity/batch.js' ;
32+ import { Batch , effect_pending_updates } from '../../reactivity/batch.js' ;
3333import { internal_set , source } from '../../reactivity/sources.js' ;
3434import { tag } from '../../dev/tracing.js' ;
3535import { createSubscriber } from '../../../../reactivity/create-subscriber.js' ;
Original file line number Diff line number Diff line change @@ -3198,7 +3198,7 @@ declare namespace $state {
31983198 * you must reassign it.
31993199 *
32003200 * Example:
3201- * ```ts
3201+ * ```svelte
32023202 * <script>
32033203 * let items = $state.raw([0]);
32043204 *
@@ -3207,7 +3207,7 @@ declare namespace $state {
32073207 * };
32083208 * </script>
32093209 *
3210- * <button on:click ={addItem}>
3210+ * <button onclick ={addItem}>
32113211 * {items.join(', ')}
32123212 * </button>
32133213 * ```
@@ -3222,7 +3222,7 @@ declare namespace $state {
32223222 * To take a static snapshot of a deeply reactive `$state` proxy, use `$state.snapshot`:
32233223 *
32243224 * Example:
3225- * ```ts
3225+ * ```svelte
32263226 * <script>
32273227 * let counter = $state({ count: 0 });
32283228 *
You can’t perform that action at this time.
0 commit comments