Skip to content

Commit 32db392

Browse files
authored
format
1 parent 568efd7 commit 32db392

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed
Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
<script context="module">
22
class Foo {
3-
x = $state(5);
4-
y = $derived(this.x * 2);
5-
}
6-
const foo = new Foo();
3+
x = $state(5);
4+
y = $derived(this.x * 2);
5+
}
6+
const foo = new Foo();
77
8-
let x = $state(2);
9-
let y = $derived(x * 2);
10-
const bar = {
11-
get x() {
12-
return x;
13-
},
14-
set x(val) {
15-
x = val;
16-
},
17-
18-
get y() {
19-
return y;
20-
},
21-
};
8+
let x = $state(2);
9+
let y = $derived(x * 2);
10+
const bar = {
11+
get x() {
12+
return x;
13+
},
14+
set x(val) {
15+
x = val;
16+
},
2217
18+
get y() {
19+
return y;
20+
},
21+
};
2322
</script>
2423

2524
<button onclick={() => foo.x++}>
@@ -29,5 +28,3 @@ const bar = {
2928
<button onclick={() => bar.x++}>
3029
x: {bar.x}, y: {bar.y}
3130
</button>
32-
33-
<svelte:options runes />

0 commit comments

Comments
 (0)