We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@types/node
2.7.13
www.typescriptlang.org/play
open the reproduction link
<div @click="handleClick">ok</div> to work
<div @click="handleClick">ok</div>
Type '() => void' is not assignable to type 'MouseEvent'
DOM's Event was tainted by @types/node.
E[K] extends Function always true
E[K]
type EventHandlers<E> = { [K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void }
The text was updated successfully, but these errors were encountered:
EventHandlers
fix(types): stricter type condition for EventHandlers (#12840)
0b3cf7d
fix #12832
Successfully merging a pull request may close this issue.
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 workWhat is actually happening?
Type '() => void' is not assignable to type 'MouseEvent'
DOM's Event was tainted by
@types/node
.E[K]
extends Function always trueThe text was updated successfully, but these errors were encountered: