EventHandlers type error, DOM's Event was tainted by `@types/node`

This issue has been created since 2022-10-16.

Version

2.7.13

Reproduction link

www.typescriptlang.org/play

Steps to reproduce

open the reproduction link

What is expected?

<div @click="handleClick">ok</div> to work

What is actually happening?

Type '() => void' is not assignable to type 'MouseEvent'


DOM's Event was tainted by @types/node.

E[K] extends Function always true

type EventHandlers<E> = {
  [K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
}
More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-12-10
Star Count 201155
Watcher Count 6070
Fork Count 33134
Issue Count 595

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Warp is very slow so split terminal windows - getting spinning wheel 6 2022-08-17 2022-08-23
Identifo: 2FA Token Bug 1 2021-09-20 2022-11-05
home_user_sync not matching against the correct user 2 2021-03-05 2022-11-07
Dart/Flutter support 0 2021-04-17 2022-10-26
Kite not compatible with PyCharm 3 2021-04-11 2022-10-03
It would really help if Kite was faster for Jupyter 0 2021-04-11 2022-11-14
Support React 17 5 2021-04-16 2022-01-14
Always classify normal image to porn. 0 2021-01-13 2022-10-26
Crash while classifying a list of images: isdir("list") raises exception 0 2021-01-11 2022-10-26
can printf like style with not auto ‘\n’? 2 2021-09-03 2022-11-30
如何修改derection为向下? 3 2019-01-08 2022-01-16
Missing hive column type during ingestion 4 2022-02-03 2022-01-31
Humble - import fails on certain game (simian.interface++) 1 2021-06-24 2022-11-04
non_floating_sharp_tabs has no outlines (FF 89) 1 2021-06-03 2022-11-11
X11 windows open only for first host 4 2022-04-20 2022-11-06
downsample algorithm 6 2020-09-18 2022-10-28
Query builder readonly mode 0 2021-06-15 2022-08-17
Warning idea: function/predicate post-conditions that do not reference themselves or their return value 0 2022-07-26 2022-08-09
Set default namespace in a session 3 2020-08-12 2022-11-13
mac10-x86-2 missing the sw.os.osx label 2 2021-10-20 2021-12-01
Security Policy violation Branch Protection 5 2022-04-22 2022-11-12
Disable pretty print exception 1 2021-05-29 2022-11-25
Draw From the AR Cast Scene 4 2020-04-06 2022-11-11
Bayonetta 3 crash/immediate reboot of emulator at Secret Chapter 2 2022-12-04 2022-12-03
[Bug Report] Front Mission won't boot 0 2022-12-05 2022-12-03
manifest unknown 1 2021-11-10 2022-01-16
Mistake in "Illegal character in scheme" validation error 3 2021-07-26 2022-08-14
compilation failure for linux x32 ABI 2 2022-06-11 2022-12-02
[request] `z3/4.9.1`, without `mpir` 0 2022-07-07 2022-11-30
ppss.kr and ygosu.com 0 2021-09-08 2022-11-24
[REQ] [csharp-netcore] Allow to specify content-type when sending a file 0 2021-09-25 2022-10-05
No way to disable the at-least-one-priviledged-user check 0 2022-01-03 2022-11-05
Test context of agent that includes .filter() hangs 3 2020-07-28 2022-10-16
Test file not found, when not run in root 21 2022-03-23 2022-12-09
false errors 4 2021-10-11 2022-01-12
gradle 3.0 && com.android.tools.build:gradle:2.2.0-rc1 3 2016-09-02 2022-11-22
Auth emulator cannot handle (backup or emulate) large numbers of users > ~500 2 2021-09-14 2022-11-27
`ExternalStream` is left undocumented 0 2021-10-28 2022-11-11
Signal to flush non-application data 0 2022-09-19 2022-11-17
Provide glob example place holders in include and exclude text boxes in kiota.dev 0 2022-10-21 2022-11-23
Implement `modules/thank-with-google` JS store foundation 5 2022-06-15 2022-11-23
GitHub API for releases produces empty output 2 2021-05-08 2022-09-26
[padding-line-between-statements] Some ESLint options are not accepted by this extension rule 2 2021-11-05 2022-10-24
Support tsconfig references 7 2021-11-06 2022-11-01
Single run detection for type-aware linting causing file not found in any of the provided program instances 3 2021-11-05 2022-07-30
multiple suppression files in Maven command line 4 2021-12-22 2022-01-16
Remove JLC text from Microswitch_endstop B.silks 10 2021-03-07 2022-11-30
Relationship button (Expand / Collapse) causes text disappearing 1 2022-07-27 2022-10-10
Q: Where is the trace module? 1 2022-07-30 2022-12-09
Getting concrete Event causes an exception 0 2016-03-22 2022-12-05