Skip to content

Commit 2cee806

Browse files
committed
1 parent 3cbf363 commit 2cee806

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

documentation/docs/02-runes/02-$state.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ todos[0].done = !todos[0].done;
4444
If you push a new object to the array, it will also be proxified:
4545

4646
```js
47-
// @filename: ambient.d.ts
48-
declare global {
49-
const todos: Array<{ done: boolean, text: string }>
50-
}
51-
52-
// @filename: index.js
47+
let todos = [{ done: false, text: 'add more todos' }];
5348
// ---cut---
5449
todos.push({
5550
done: false,

0 commit comments

Comments
 (0)