Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 04a41c7

Browse files
authored
Change myButton to clickTime
Which seems to make much more sence
1 parent 4da4e8d commit 04a41c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Type Inference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This is known as "contextual typing". Contextual typing occurs when the type of
5050

5151
```ts
5252
window.onmousedown = function(mouseEvent) {
53-
console.log(mouseEvent.myButton); //<- Error
53+
console.log(mouseEvent.clickTime); //<- Error
5454
};
5555
```
5656

@@ -63,7 +63,7 @@ Had we written the above example:
6363

6464
```ts
6565
window.onmousedown = function(mouseEvent: any) {
66-
console.log(mouseEvent.myButton); //<- Now, no error is given
66+
console.log(mouseEvent.clickTime); //<- Now, no error is given
6767
};
6868
```
6969

0 commit comments

Comments
 (0)