We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4da4e8d commit 04a41c7Copy full SHA for 04a41c7
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.myButton); //<- 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.myButton); //<- Now, no error is given
+ console.log(mouseEvent.clickTime); //<- Now, no error is given
67
68
69
0 commit comments