Skip to content

Commit 6e41837

Browse files
authored
Update typed-event.md
1 parent c69b1e6 commit 6e41837

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tips/typed-event.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ onBar.on((bar)=>console.log(bar));
3030

3131
This has the following advantages:
3232
* The types of events are easily discoverable as variables.
33+
* The event emitter variables are easily refactored independently.
3334
* Type safety for event data structures.
3435

3536
### Reference TypedEvent
@@ -76,4 +77,4 @@ export class TypedEvent<T> {
7677
return this.on((e) => te.emit(e));
7778
}
7879
}
79-
```
80+
```

0 commit comments

Comments
 (0)