We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da447e9 + 9097c10 commit 5ac72b9Copy full SHA for 5ac72b9
pages/Type Inference.md
@@ -50,7 +50,7 @@ This is known as "contextual typing". Contextual typing occurs when the type of
50
51
```ts
52
window.onmousedown = function(mouseEvent) {
53
- console.log(mouseEvent.button); //<- Error
+ console.log(mouseEvent.clickTime); //<- Error
54
};
55
```
56
@@ -63,7 +63,7 @@ Had we written the above example:
63
64
65
window.onmousedown = function(mouseEvent: any) {
66
- console.log(mouseEvent.button); //<- Now, no error is given
+ console.log(mouseEvent.clickTime); //<- Now, no error is given
67
68
69
0 commit comments