Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9318bd9

Browse files
authored
Merge pull request xcatliu#23 from yuu2lee4/patch-1
'click' -> string
2 parents 60a9ad8 + 822ab75 commit 9318bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basics/built-in-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ document.addEventListener('click', function(e) {
8080

8181
```ts
8282
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
83-
addEventListener(type: 'click', listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
83+
addEventListener(type: string, listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8484
}
8585
```
8686

0 commit comments

Comments
 (0)