```ts const img = document.createElement('img') // type error: img.onerror = (e: Event) => e ``` <img width="614" alt="Screenshot 2024-10-07 at 8 03 39 PM" src="https://github.com/user-attachments/assets/ae7ea129-5b59-411d-bbec-49ad054b5dc4"> [playground](https://www.typescriptlang.org/play/?#code/MYewdgzgLgBAlgWwOYwLwwCYmAVwQUzCgDpgAnfAQynwFEAbfAogCgHJEk2BKAKF4D0AmAAkcACwD8k3p2Lh8ZMiDJoYLfAC4YtAG6Eo3NAD4Y+XkA) Only `Window.onerror` should have the alternative signature, but not elements. See: - https://developer.mozilla.org/en-US/docs/Web/API/Window/error_event - https://udn.realityripple.com/docs/Web/API/GlobalEventHandlers/onerror